FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Error al compilar con TMySQL
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Error al compilar con TMySQL
Posted: Thu Jan 10, 2013 08:22 PM

He compilado el programa xcomunity.prg que viene con la tmysql y me arroja los siguientes errores:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FiveWin for xHarbour 9.08 - Aug. 2009 xHarbour development power β”‚β–„
β”‚ (c) FiveTech, 1993-2009 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'xcomunity.prg' and generating preprocessed output to 'xcomunity.ppo'.
..
Lines 174, Functions/Procedures 6
Generating C source output to 'xcomunity.c'...
Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
xcomunity.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'mysql_init' referenced from C:\FWH\LIB\MYSQL.LIB|mys
ql
Error: Unresolved external 'mysql_real_connect' referenced from C:\FWH\LIB\MYSQL
.LIB|mysql
Error: Unresolved external 'mysql_close' referenced from C:\FWH\LIB\MYSQL.LIB|my
sql
Error: Unresolved external 'mysql_select_db' referenced from C:\FWH\LIB\MYSQL.LI
B|mysql
Error: Unresolved external 'mysql_query' referenced from C:\FWH\LIB\MYSQL.LIB|my
sql
Error: Unresolved external 'mysql_store_result' referenced from C:\FWH\LIB\MYSQL
.LIB|mysql
Error: Unresolved external 'mysql_fetch_field' referenced from C:\FWH\LIB\MYSQL.
LIB|mysql
Error: Unresolved external 'mysql_field_count' referenced from C:\FWH\LIB\MYSQL.
LIB|mysql
Error: Unresolved external 'mysql_list_fields' referenced from C:\FWH\LIB\MYSQL.
LIB|mysql
Error: Unresolved external 'mysql_error' referenced from C:\FWH\LIB\MYSQL.LIB|my
sql
Error: Unresolved external 'mysql_errno' referenced from C:\FWH\LIB\MYSQL.LIB|my
sql
Error: Unresolved external 'mysql_list_dbs' referenced from C:\FWH\LIB\MYSQL.LIB
|mysql
Error: Unresolved external 'mysql_list_tables' referenced from C:\FWH\LIB\MYSQL.
LIB|mysql
Error: Unresolved external 'mysql_free_result' referenced from C:\FWH\LIB\MYSQL.
LIB|mysql
Error: Unresolved external 'mysql_affected_rows' referenced from C:\FWH\LIB\MYSQ
L.LIB|mysql
Error: Unresolved external 'mysql_get_host_info' referenced from C:\FWH\LIB\MYSQ
L.LIB|mysql
Error: Unresolved external 'mysql_get_server_info' referenced from C:\FWH\LIB\MY
SQL.LIB|mysql
Error: Unresolved external 'mysql_real_escape_string' referenced from C:\FWH\LIB
\MYSQL.LIB|mysql
Error: Unresolved external 'mysql_escape_string' referenced from C:\FWH\LIB\MYSQ
L.LIB|mysql
Error: Unresolved external 'mysql_ping' referenced from C:\FWH\LIB\MYSQL.LIB|mys
ql
Error: Unresolved external 'mysql_num_rows' referenced from C:\FWH\LIB\MYSQL.LIB
|mysql
Error: Unresolved external 'mysql_data_seek' referenced from C:\FWH\LIB\MYSQL.LI
B|mysql
Error: Unresolved external 'mysql_field_seek' referenced from C:\FWH\LIB\MYSQL.L
IB|mysql
Error: Unresolved external 'mysql_num_fields' referenced from C:\FWH\LIB\MYSQL.L
IB|mysql
Error: Unresolved external 'mysql_fetch_lengths' referenced from C:\FWH\LIB\MYSQ
L.LIB|mysql
Error: Unresolved external 'mysql_fetch_row' referenced from C:\FWH\LIB\MYSQL.LI
B|mysql
Error: Unresolved external '_HB_FUN_ATNUM' referenced from C:\FWH\LIB\MYSQL.LIB|
tmysql
* Linking errors *

Me falta algo? QuΓ© me falta?

Uso FWH 9.08+xHarbour 1.2.1 + BCC 5.5

de Antemano gracias...

Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: Error al compilar con TMySQL
Posted: Thu Jan 10, 2013 11:59 PM

Leo,

Debes incluir la LIB LIBMYSQL.LIB que se obtiene haciendo la importacion de la LIBMYSQL.DLL

implib libmysql libmysql.dll

implib.exe es utileria de borland

Saludos

William, Morales

Saludos



mΓ©xico.sureste
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Re: Error al compilar con TMySQL
Posted: Fri Jan 11, 2013 12:59 PM

Gracias William por responder y darme una idea pero LibMySQL.DLL ΒΏDΓ³nde la encuentro?

Por que tengo la de Windows, la de workbrench y una que bajΓ© de una pΓ‘gina brasilera.

Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Re: Error al compilar con TMySQL
Posted: Fri Jan 11, 2013 01:21 PM

Bueno, lo hice con la de los brasileros, y ahora sΓ³lo me queda un error en la compilaciΓ³n:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FiveWin for xHarbour 9.08 - Aug. 2009 xHarbour development power β”‚β–„
β”‚ (c) FiveTech, 1993-2009 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'xcomunity.prg' and generating preprocessed output to 'xcomunity.ppo'.
..
Lines 174, Functions/Procedures 6
Generating C source output to 'xcomunity.c'...
Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
xcomunity.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_ATNUM' referenced from C:\XHARBOUR\LIB\MYSQL
.LIB|tmysql
* Linking errors *

C:\FWH\TMySql>

DΓ³nde encuentro la _HB_FUN_ATNUM?

Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: Error al compilar con TMySQL
Posted: Sat Jan 12, 2013 03:17 AM

Leo,

Adiciona la LIB CT.LIB de xharbour

William, Morales

Saludos



mΓ©xico.sureste
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 12:00 PM
William, gracias por la respuesta, ya he logrado compilar el ejemplo xcomunity y obtener el ejecutable, pero tengo otro problema, al intentar generar la conexiΓ³n me bota con un mysql error de que no se ha podido concretar la conexiΓ³n al server. Tengo un mysql en modo local por lo tanto si no me equivoco las valores para la conexiΓ³n serΓ­an los siguientes:

Code (fw): Select all Collapse
#include 'fivewin.ch'

*-------------------*
STATIC oServer
STATIC oQry
STATIC oBrw
STATIC oWnd
STATIC oMenu

FUNCTION main()
Β  Β LOCAL cHost Β := "localhost" Β  //" 127.0.0.1"
Β  Β LOCAL cUser Β := "root"
Β  Β LOCAL cPsw Β  := "marco"
Β  Β LOCAL nPort Β := 3306
Β  Β LOCAL cDb Β  Β := "test"
Β  Β LOCAL n Β  Β  Β := 1
Β  Β LOCAL cQuery := ""

   oServer:= TMySQLServer():New( cHost, cUser, cPsw, nPort )
   if oServer:NetErr()
      MsgAlert (oServer:Error(),"MySQL Error")
      quit
   endif


que es la forma en que definΓ­ la conexiΓ³n mediante mysql workbrench. Estoy algo perdido.

Desde ya muchas gracias por el apoyo.
Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.
Posts: 883
Joined: Tue Oct 11, 2005 11:57 AM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 12:35 PM

Leo

No uses "localhost" en tu string de conexion, usa directamente la ip "127.0.0.1", en algunos Windows no soporta el uso de localhost.

Saludos
Desde Chile
Adolfo

;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 12:49 PM

Gracias Adolfo, lo hice, y me sigue arrojando el mismo error.

Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 04:19 PM

Leo,

Cual es el error?

William, Morales

Saludos



mΓ©xico.sureste
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 05:53 PM

William, simplemente me dice que "No hubo conexiΓ³n al servido, verifique..." siendo que con workbrench uso los parΓ‘metros que estoy enviado para la conexiΓ³n.

Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 06:26 PM
Leo,

Puedes mandar a desplegar las siguientes datas.

Code (fw): Select all Collapse
? oServer:error(), oServer:errorno()


Y dinos que mensajes te envia
William, Morales

Saludos



mΓ©xico.sureste
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 06:33 PM

Acabo de hacerlo, y me pone en tΓ­tulo el mismo mensaje anterior.

Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 06:37 PM

Leo,

Pues amigo, es muy generico el error, pueden ser varias cosas.

Servidor no disponible
ParΓ‘metros incorrectos
DLL no estΓ‘ en la carpeta de tu EXE (libmysql.dll)

Saludos

William, Morales

Saludos



mΓ©xico.sureste
Posts: 66
Joined: Thu Jan 03, 2013 06:13 PM
Re: Error al compilar con TMySQL
Posted: Mon Jan 14, 2013 06:44 PM

Creo que debΓ­ empezar por esto, tengo instalado un mysql en modo local con apache VersiΓ³n del servidor: 5.0.45-community-nt-log.

Fivewin 12.04 + xHarbour 1.2.1 + BCC582



Nada como Fivewin, odio visual basic, visual studio y todas las porquerΓ­as visual.

Continue the discussion