HMG 3.44 error GETDEFAULTPRINTER multiple definition console mode

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
juanato
Posts: 14
Joined: Fri Sep 21, 2012 2:42 pm

HMG 3.44 error GETDEFAULTPRINTER multiple definition console mode

Post by juanato » Sun Mar 10, 2019 12:28 am

Hello HMG users.


When I build with HMG 3.44 an project made in console mode, I get this error:


Z:/home/juanato/xbase/hmg344/HARBOUR/lib/win/mingw\libxhb.a(xhbprn.o):xhbprn.c:(.text+0x10): multiple definition of `HB_FUN_GETDEFAULTPRINTER'
Z:/home/juanato/xbase/hmg344/lib\libhmg.a(c_controlmisc.o):c_controlmisc.c:(.text+0x3720): first defined here
collect2.exe: error: ld returned 1 exit status


Z:/home/juanato/xbase/hmg344/HARBOUR/lib/win/mingw\libxhb.a(xhbprn.o):xhbprn.c:(.text+0x10): multiple definition of `HB_FUN_GETDEFAULTPRINTER'
Z:/home/juanato/xbase/hmg344/lib\libhmg.a(c_controlmisc.o):c_controlmisc.c:(.text+0x3720): first defined here
collect2.exe: error: ld returned 1 exit status
hbmk2[gestoria]: Error: Ejecutando enlazador. 1
gcc.exe "C:/users/juanato/Temp/hbmk_za8k8q.dir/gest-mnu.o" C:/users/juanato/Temp/hbmk_za8k8q.dir/alertarl.o C:/users/juanato/Temp/hbmk_za8k8q.dir/allkey.o C:/users/juanato/Temp/hbmk_za8k8q.dir/bigtext.o C:/users/juanato/Temp/hbmk_za8k8q.dir/brotxt.o C:/users/juanato/Temp/hbmk_za8k8q.dir/calcultr.o C:/users/juanato/Temp/hbmk_za8k8q.dir/calendar.o C:/users/juanato/Temp/hbmk_za8k8q.dir/cardchck.o C:/users/juanato/Temp/hbmk_za8k8q.dir/cifnif.o C:/users/juanato/Temp/hbmk_za8k8q.dir/cifnif2.o C:/users/juanato/Temp/hbmk_za8k8q.dir/climae.o C:/users/juanato/Temp/hbmk_za8k8q.dir/climov.o C:/users/juanato/Temp/hbmk_za8k8q.dir/digconbn.o C:/users/juanato/Temp/hbmk_za8k8q.dir/entmov.o C:/users/juanato/Temp/hbmk_za8k8q.dir/expmov.o C:/users/juanato/Temp/hbmk_za8k8q.dir/facmov.o C:/users/juanato/Temp/hbmk_za8k8q.dir/gasmov.o "C:/users/juanato/Temp/hbmk_za8k8q.dir/gest-fls.o" C:/users/juanato/Temp/hbmk_za8k8q.dir/hiddnkbd.o C:/users/juanato/Temp/hbmk_za8k8q.dir/impresos.o C:/users/juanato/Temp/hbmk_za8k8q.dir/informes.o C:/users/juanato/Temp/hbmk_za8k8q.dir/inimng.o C:/users/juanato/Temp/hbmk_za8k8q.dir/listados.o "C:/users/juanato/Temp/hbmk_za8k8q.dir/matr-exp.o" C:/users/juanato/Temp/hbmk_za8k8q.dir/menuto.o C:/users/juanato/Temp/hbmk_za8k8q.dir/parmae.o C:/users/juanato/Temp/hbmk_za8k8q.dir/randomiz.o C:/users/juanato/Temp/hbmk_za8k8q.dir/rddsys.o C:/users/juanato/Temp/hbmk_za8k8q.dir/reloj.o C:/users/juanato/Temp/hbmk_za8k8q.dir/scrnblnk.o C:/users/juanato/Temp/hbmk_za8k8q.dir/somefunc.o C:/users/juanato/Temp/hbmk_za8k8q.dir/status.o C:/users/juanato/Temp/hbmk_za8k8q.dir/stawin.o C:/users/juanato/Temp/hbmk_za8k8q.dir/supmov.o C:/users/juanato/Temp/hbmk_za8k8q.dir/valedit.o C:/users/juanato/Temp/hbmk_za8k8q.dir/vehmae.o C:/users/juanato/Temp/hbmk_za8k8q.dir/hbmk_giunnt.o "Z:/home/juanato/xbase/gestoria-consola-hmg/_temp.o" -pthread -static-libgcc -static-libstdc++ -static -lpthread -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lini -lreport -lhfcl -lmsvfw32 -lvfw32 -lhbmysql -lmysql -lhbfimage -lhbpgsql -lsddmy -lhbvpdf -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lhbodbc -lodbc32 -lhbhpdf -lhbnetio -lxhb -lpng -llibhpdf -lhbzebra -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -ogestoria.exe -LZ:/home/juanato/xbase/hmg344/HARBOUR/lib/win/mingw -LZ:/home/juanato/xbase/hmg344/lib


Anyone know this error how be fixed?


Thanks.

User avatar
salamandra
Posts: 134
Joined: Thu Jul 31, 2008 8:33 pm
Location: Brazil
Has thanked: 1 time
Been thanked: 1 time

Post by salamandra » Mon Mar 11, 2019 9:48 pm

Hi Juanato,
Did you try removing libxhb.a ??

[]´s Salamandra
There is one time in which is crucial awakening. That time is now. ( Buddha )

Post Reply