• Error on compiling dbf2mysql.prg

    From reinaldohf@gmail.com@21:1/5 to All on Wed Mar 15 17:48:31 2023
    Hi,

    I am trying to compile dbf2mysql.prg from the contrib\mysql\tests\dbf2mysql.prg.

    It gives the error message bellow:

    Error: Unresolved external '_HB_FUN_TMYSQLSERVER' referenced from C:\USERS\RHFSY\XHARBOUR_SRC\CORE-MASTER\CONTRIB\MYSQL\TESTS\OBJ\DBF2MYSQL.OBJ

    What is wrong?

    Thanks in advance.

    Reynaldo Henrique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Mar 16 10:05:20 2023
    Il 16/03/2023 01:48, reina...@gmail.com ha scritto:

    Hi,

    I am trying to compile dbf2mysql.prg from the contrib\mysql\tests\dbf2mysql.prg.

    It gives the error message bellow:

    Error: Unresolved external '_HB_FUN_TMYSQLSERVER' referenced from C:\USERS\RHFSY\XHARBOUR_SRC\CORE-MASTER\CONTRIB\MYSQL\TESTS\OBJ\DBF2MYSQL.OBJ

    What is wrong?

    I could not build all the contrib source code, sorry. However, the
    source code of TMySQLServer is in contrib\mysql\tmysql.prg.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From reinaldohf@gmail.com@21:1/5 to All on Thu Mar 16 13:28:53 2023
    Hi Enrico,

    Thank you for your answear!

    What is wrong?
    I could not build all the contrib source code, sorry. However, the
    source code of TMySQLServer is in contrib\mysql\tmysql.prg.

    I tried to rebuild all the lib, but it gives a lot of error message!
    So, I don't know what to do.

    Reynaldo Henrique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Mar 16 23:12:15 2023
    Il 16/03/2023 22:47, reina...@gmail.com ha scritto:

    Embarcadero C++ 7.40 for Win32 Copyright (c) 1993-2018 Embarcadero Technologies, Inc.
    Warning W8123: Path '\lib' not found - path ignored in option '-L'

    Can I see the commands you are using?

    mysql.c:
    Error E2193 mysql.c 183: Too few parameters in call to 'mysql_real_connect' in function HB_FUN_MYSQL_REAL_CONNECT
    *** 1 errors in Compile ***

    Check your MYSQL_VERSION_ID. And look at this difference:

    mysql_real_connect( mysql, szHost, szUser, szPass, 0, port, NULL, flags ) )

    mysql_real_connect( NULL, szHost, szUser, szPass, 0, NULL, 0 ) );

    The second does not have the port parameter. Try with

    mysql_real_connect( NULL, szHost, szUser, szPass, 0, 0, NULL, 0 ) );

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From reinaldohf@gmail.com@21:1/5 to All on Thu Mar 16 14:47:00 2023
    Em quinta-feira, 16 de março de 2023 às 17:28:54 UTC-3, reina...@gmail.com escreveu:
    Hi Enrico,

    Thank you for your answear!
    What is wrong?
    I could not build all the contrib source code, sorry. However, the
    source code of TMySQLServer is in contrib\mysql\tmysql.prg.

    I tried to rebuild all the lib, but it gives a lot of error message!
    So, I don't know what to do.

    I rebuild the lib, and now it gives the follow error:

    Embarcadero C++ 7.40 for Win32 Copyright (c) 1993-2018 Embarcadero Technologies, Inc.
    Warning W8123: Path '\lib' not found - path ignored in option '-L'
    mysql.c:
    Error E2193 mysql.c 183: Too few parameters in call to 'mysql_real_connect' in function HB_FUN_MYSQL_REAL_CONNECT
    *** 1 errors in Compile ***

    I corrected all errors that was appearing, and now there is only the error above.

    Reynaldo Henrique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From reinaldohf@gmail.com@21:1/5 to All on Thu Mar 16 15:30:37 2023
    Hi Enrico,

    Thanks for your help!

    Check your MYSQL_VERSION_ID. And look at this difference:

    mysql_real_connect( mysql, szHost, szUser, szPass, 0, port, NULL, flags ) )

    mysql_real_connect( NULL, szHost, szUser, szPass, 0, NULL, 0 ) );

    The second does not have the port parameter. Try with

    mysql_real_connect( NULL, szHost, szUser, szPass, 0, 0, NULL, 0 ) );
    --
    All errors have been resolved.
    The lib MYSQL.LIB was built successfully!
    Now I can test it.

    Reynaldo Henrique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Fri Mar 17 10:53:22 2023
    Il 16/03/2023 23:30, reina...@gmail.com ha scritto:

    All errors have been resolved.
    The lib MYSQL.LIB was built successfully!
    Now I can test it.

    Great! Please keep us updated.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From reinaldohf@gmail.com@21:1/5 to All on Fri Mar 17 12:25:28 2023

    All errors have been resolved.
    The lib MYSQL.LIB was built successfully!
    Now I can test it.
    Great! Please keep us updated.

    Now what I have to do is test the classes. I have a lot to learn.

    Thanks,

    Reyanddo Henrique

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)