How to resolve this? lack functions

How to resolve this? lack functions

Postby Ari » Thu Jun 22, 2023 7:51 pm

Compilation errors: I've done this other times, and I can't solve it :-(

Code: Select all  Expand view


Generating C source output to '\tmp\sisrev5H\versao.c'... Done.
    c:\bcc74\bin\bcc32 -c -tWM -I\sis\fsql901\include;\fwh2212\include;\harbour\include;\bcc74\include -o\tmp\sisrev5H\versao \tmp\sisrev5H\versao.c
Embarcadero C++ 7.40 for Win32 Copyright (c) 1993-2018 Embarcadero Technologies, Inc.
\tmp\sisrev5H\versao.c:
MAKE Version 5.41  Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
Turbo Incremental Link 6.90 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_MYSQL_QUERY' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_STORE_RESULT' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_NUM_ROWS' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_NUM_FIELDS' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_FETCH_FIELD' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_DATA_SEEK' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_FETCH_ROW' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_ERROR' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_LIST_DBS' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_LIST_TABLES' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_COMMIT' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_ROLLBACK' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_GET_SERVER_VERSION' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_REAL_CONNECT' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_SELECT_DB' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_SQL_VERSION' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unable to perform link
O sistema nÆo pode encontrar o arquivo especificado.
 




Code: Select all  Expand view


...

\sis\fsql901\visual\lib\taskpanH.lib +
\sis\fsql901\lib\libmysql.lib,       +
sisrev_api.exe,                      +
sisrev_api.map,                      +
\fwh2212\lib\fiveH.lib               +
\fwh2212\lib\fiveHc.lib              +
\harbour\lib\hbhpdf.lib              +
\harbour\lib\libhpdf.lib             +
\harbour\lib\png.lib                 +
\harbour\lib\hbwin.lib               +
\harbour\lib\gtgui.lib               +
\harbour\lib\hbvmmt.lib              +
\harbour\lib\hbrtl.lib               +
\harbour\lib\hblang.lib              +
\harbour\lib\hbmacro.lib             +
\harbour\lib\hbrdd.lib               +
\harbour\lib\rddntx.lib              +
\harbour\lib\rddcdx.lib              +
\harbour\lib\rddfpt.lib              +
\harbour\lib\hbsix.lib               +
\harbour\lib\hbcommon.lib            +
\harbour\lib\hbpp.lib                +
\harbour\lib\hbcpage.lib             +
\harbour\lib\hbcplr.lib              +
\harbour\lib\hbct.lib                +
\harbour\lib\hbpcre.lib              +
\harbour\lib\xhb.lib                 +
\harbour\lib\hbziparc.lib            +
\harbour\lib\hbmzip.lib              +
\harbour\lib\hbzlib.lib              +
\harbour\lib\minizip.lib             +
\harbour\lib\hbusrrdd.lib            +
\harbour\lib\hbtip.lib               +
\harbour\lib\hbzebra.lib             +  
\harbour\lib\hbcurl.lib              +
\harbour\lib\libcurl.lib             +
\bcc74\lib\c0w32.obj                 +
\bcc74\lib\win32\import32.lib        +
\bcc74\lib\win32\cw32.lib            +
\bcc74\lib\win32\psdk\uuid.lib       +
\bcc74\lib\win32\psdk\ws2_32.lib     +
\bcc74\lib\win32\imm32.lib           +
\bcc74\lib\win32\winmm.lib           +
\bcc74\lib\win32\psdk\odbc32.lib     +
\bcc74\lib\win32\psdk\nddeapi.lib    +
\bcc74\lib\win32\psdk\iphlpapi.lib   +
\bcc74\lib\win32\psdk\msimg32.lib    +
\bcc74\lib\win32\psdk\psapi.lib      +
\bcc74\lib\win32\psdk\rasapi32.lib   +
\bcc74\lib\win32\psdk\gdiplus.lib    +
\bcc74\lib\win32\psdk\Wtsapi32.lib   +
\bcc74\lib\win32\psdk\cw32mt.lib     +
\bcc74\lib\win32\psdk\shell32.lib,

 
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 228
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: How to resolve this? lack functions

Postby karinha » Fri Jun 23, 2023 10:26 am

Ari, poste o .LNK completo.
Aqui, esta errado:

\sis\fsql901\lib\libmysql.lib, +
sisrev_api.exe, +
sisrev_api.map, +

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: How to resolve this? lack functions

Postby Ari » Fri Jun 23, 2023 1:13 pm

Olá

Esplicando melhor: a muitos anos eu consegui compilar no tranco, as funções do MySQL, e linkava (mysql.c) --> mysql.obj junto, só que este só trabalha com senha MySQL antiga old_passwords, e nos Linuxs atuais já tá ficando complicado, ter que ficar mudando isso na instalação do MySQL e a Oracle vem mudando e escondendo as coisas faz tempo, então fui para o MariaDB, e com a minha lib antiga até conecta dando um jeito nas configs do MySQL, mas mysql_query() dá pau, mysql_selectDB() , todas as outras apresenta falha.

No link completo tem a TMYSQL.prg nova com as novas funções ( mysql_real_connect() .. etc), e neste link tem os outros programas do sistema, são muito, por isso não postei.

Já usei o IMPLIB para gerar a Libmysql.lib com a DLL, mas ainda dá falta das funções, tenho que criar um OBJ com elas, no passado eu gerei a partir de um mysql.c,

Ari
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 228
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: How to resolve this? lack functions

Postby nageswaragunupudi » Fri Jun 23, 2023 1:15 pm

Add
Code: Select all  Expand view
\fwh2212\lib\libmysql.lib


Whenever in doubt what libs to include, please always refer to buildh.bat
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to resolve this? lack functions

Postby Ari » Fri Jun 23, 2023 1:24 pm

Hello

Thanks for answering

Includes LIB and missing these two functions

Code: Select all  Expand view

\tmp\sisrev5H\tMysqlH.c:
Turbo Incremental Link 6.90 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_MYSQL_DATA_SEEK' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unresolved external '_HB_FUN_MYSQL_SELECT_DB' referenced from C:\TMP\SISREV5H\TMYSQLH.OBJ
Error: Unable to perform link
 
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 228
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: How to resolve this? lack functions [Solved]

Postby Ari » Fri Jun 23, 2023 3:02 pm

I found mysql.c sources on the internet

And I managed to link and run everything ok

Grateful
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 228
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 39 guests

cron