undefined reference to `HB_FUN_TMYSQLSERVER' hmg64

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
jairpinho
Posts: 340
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Has thanked: 3 times
Been thanked: 11 times
Contact:

undefined reference to `HB_FUN_TMYSQLSERVER' hmg64

Post by jairpinho » Mon Jul 24, 2017 5:12 pm

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()
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Jul 25, 2017 2:51 am

Libs=hbmysql
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
jairpinho
Posts: 340
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Has thanked: 3 times
Been thanked: 11 times
Contact:

Post by jairpinho » Tue Jul 25, 2017 6:31 pm

Rathinagiri wrote:
Tue Jul 25, 2017 2:51 am
Libs=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
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br

User avatar
jairpinho
Posts: 340
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Has thanked: 3 times
Been thanked: 11 times
Contact:

Post by jairpinho » Wed Sep 06, 2017 2:16 am

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

Does hmg64 work with mysql? because I can not always run the error, other examples work normal in hmg64
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br

User avatar
serge_girard
Posts: 2331
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 573 times
Been thanked: 124 times
Contact:

Post by serge_girard » Wed Sep 06, 2017 7:19 am

I have the same problem (MySQL + W10). Not yet found out why.

Serge

Post Reply