Page 1 of 1

undefined reference to `HB_FUN_TMYSQLSERVER' hmg64

Posted: Mon Jul 24, 2017 5:12 pm
by jairpinho
I need to solve the connection problem with mysql to use my applications on 64bit system but I do not know how to do it, it was included in configurations lib = hbmysql but always gives this error
Always with this error:

hbmk2[mysqlbridge-64]: Aten‡Æo: Diretiva desconhecida: 'lib=mysql' in
C:\hmg.3.4.4_x64\SOURCE\HMGSQL\mysqlbridge-64.hbc:1
Harbour 3.2.0dev (r1604201603)
Copyright (c) 1999-2016, http://harbour-project.org/
C:/Users/AUTOMA~1/AppData/Local/Temp/hbmk_wwov0u.dir/hmgmysql.o:hmgmysql.c:(.data+0x70): undefined reference to `HB_FUN_TMYSQLSERVER'
collect2.exe: error: ld returned 1 exit status
hbmk2[mysqlbridge-64]: Erro: Executando linkeditor. 1
gcc.exe C:/Users/AUTOMA~1/AppData/Local/Temp/hbmk_wwov0u.dir/hmgmysql.o C:/Users/AUTOMA~1/AppData/Local/Temp/hbmk_wwov0u.dir/hbmk_5k6tay.o C:/hmg.3.4.4_x64/SOURCE/HMGSQL/_temp.o -pthread -static-libgcc -static-libstdc++ -static -lpthread -mwindows -Wl,--start-group -l"hmg-64" -l"crypt-64" -l"edit-64" -l"editex-64" -l"graph-64" -l"ini-64" -l"report-64" -l"hfcl-64" -lmsvfw32 -lvfw32 -l"hbvpdf-64" -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 -o"mysqlbridge-64.exe" -L"C:/hmg.3.4.4_x64/harbour-64/lib/win/mingw64" -L"C:/hmg.3.4.4_x64/lib-64"

hbmk2: Dica: Instale o pacote hbmysql e adicione as op‡äes 'hbmysql.hbc'
faltando nas fun‡äes: TMySQLServer()

Re: undefined reference to `HB_FUN_TMYSQLSERVER' hmg64

Posted: Tue Jul 25, 2017 2:51 am
by Rathinagiri
Libs=hbmysql

Re: undefined reference to `HB_FUN_TMYSQLSERVER' hmg64

Posted: Tue Jul 25, 2017 6:31 pm
by jairpinho
Rathinagiri wrote: Tue Jul 25, 2017 2:51 amLibs=hbmysql
Thank you added but still not build follow build.log, The libmysql.a file does not exist in the LIB-64 folder


C:/hmg.3.4.4_x64/mingw-64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lhbmysql
collect2.exe: error: ld returned 1 exit status
hbmk2[MParker]: Erro: Executando linkeditor. 1

Re: undefined reference to `HB_FUN_TMYSQLSERVER' hmg64

Posted: Wed Sep 06, 2017 2:16 am
by jairpinho
Rathinagiri wrote: Tue Jul 25, 2017 2:51 amLibs=hbmysql

Does hmg64 work with mysql? because I can not always run the error, other examples work normal in hmg64

Re: undefined reference to `HB_FUN_TMYSQLSERVER' hmg64

Posted: Wed Sep 06, 2017 7:19 am
by serge_girard
I have the same problem (MySQL + W10). Not yet found out why.

Serge