br...@notebook:~/harbour-project/harbour/contrib/hbmysql/tests$ hbmk2
-lhbmysql test
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Processing configuration: /usr/local/bin/hbmk.cfg
Harbour 2.1.0dev (Rev. 14025)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'test.prg'...
Lines 204, Functions/Procedures 1
Generating C source output to '/tmp/test.c'... Done.
br...@notebook:~/harbour-project/harbour/contrib/hbmysql/tests$ hbmk2
-lhbmysql test
hbmk2: Processing configuration: /usr/local/bin/hbmk.cfg
Harbour 2.1.0dev (Rev. 14025)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'test.prg'...
Lines 204, Functions/Procedures 1
Generating C source output to '/tmp/test.c'... Done.
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_ESCAPE_STRING_FROM_FILE':
mysql.c:(.text+0xab): undefined reference to `mysql_escape_string'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_ESCAPE_STRING':
mysql.c:(.text+0x115): undefined reference to `mysql_escape_string'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function `MYSQL_release':
mysql.c:(.text+0x158): undefined reference to `mysql_close'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_CLOSE':
mysql.c:(.text+0x19b): undefined reference to `mysql_close'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`MYSQL_RES_release':
mysql.c:(.text+0x1c8): undefined reference to `mysql_free_result'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_FREE_RESULT':
mysql.c:(.text+0x20b): undefined reference to `mysql_free_result'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_REAL_CONNECT':
mysql.c:(.text+0x2b1): undefined reference to `mysql_init'
mysql.c:(.text+0x2ec): undefined reference to `mysql_real_connect'
mysql.c:(.text+0x33c): undefined reference to `mysql_close'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_NUM_FIELDS':
mysql.c:(.text+0x378): undefined reference to `mysql_num_fields'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_INSERT_ID':
mysql.c:(.text+0x3e8): undefined reference to `mysql_insert_id'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_NUM_ROWS':
mysql.c:(.text+0x458): undefined reference to `mysql_num_rows'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_FETCH_ROW':
mysql.c:(.text+0x4cb): undefined reference to `mysql_num_fields'
mysql.c:(.text+0x4e0): undefined reference to `mysql_fetch_row'
mysql.c:(.text+0x4ee): undefined reference to `mysql_fetch_lengths'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_DATA_SEEK':
mysql.c:(.text+0x591): undefined reference to `mysql_data_seek'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_FETCH_FIELD':
mysql.c:(.text+0x620): undefined reference to `mysql_fetch_field'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_FIELD_SEEK':
mysql.c:(.text+0x769): undefined reference to `mysql_field_seek'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_GET_SERVER_VERSION':
mysql.c:(.text+0x7d8): undefined reference to `mysql_get_server_version'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_COMMIT':
mysql.c:(.text+0x848): undefined reference to `mysql_commit'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_ROLLBACK':
mysql.c:(.text+0x8b8): undefined reference to `mysql_rollback'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_SELECT_DB':
mysql.c:(.text+0x939): undefined reference to `mysql_select_db'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_QUERY':
mysql.c:(.text+0x9c9): undefined reference to `mysql_query'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_USE_RESULT':
mysql.c:(.text+0xa49): undefined reference to `mysql_use_result'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_FIELD_COUNT':
mysql.c:(.text+0xaf8): undefined reference to `mysql_field_count'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_ERROR':
mysql.c:(.text+0xb68): undefined reference to `mysql_error'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_LIST_DBS':
mysql.c:(.text+0xbe3): undefined reference to `mysql_list_dbs'
mysql.c:(.text+0xbed): undefined reference to `mysql_num_rows'
mysql.c:(.text+0xc0f): undefined reference to `mysql_fetch_row'
mysql.c:(.text+0xc30): undefined reference to `mysql_free_result'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_LIST_TABLES':
mysql.c:(.text+0xcbb): undefined reference to `mysql_list_tables'
mysql.c:(.text+0xcc5): undefined reference to `mysql_num_rows'
mysql.c:(.text+0xce7): undefined reference to `mysql_fetch_row'
mysql.c:(.text+0xd08): undefined reference to `mysql_free_result'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_AFFECTED_ROWS':
mysql.c:(.text+0xd88): undefined reference to `mysql_affected_rows'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_GET_HOST_INFO':
mysql.c:(.text+0xdf8): undefined reference to `mysql_get_host_info'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_GET_SERVER_INFO':
mysql.c:(.text+0xe68): undefined reference to `mysql_get_server_info'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_STORE_RESULT':
mysql.c:(.text+0xed9): undefined reference to `mysql_store_result'
/usr/local/lib/harbour/libhbmysql.a(mysql.o): In function
`HB_FUN_MYSQL_LIST_FIELDS':
mysql.c:(.text+0xfa1): undefined reference to `mysql_list_fields'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc /tmp/test.o /tmp/hbmk_8j8tll.o   -Wl,--start-group -lhbmysql -lhbcplr
-lhbdebug -lgpm -lharbour  -Wl,--end-group -otest -L/usr/local/lib/harbour
br...@notebook:~/harbour-project/harbour/contrib/hbmysql/tests$


2010/3/5 smu johnson <smujohn...@gmail.com>

> What happens if you just try:   hbmk2 -lhbmysql test.prg
>
> On Thu, Mar 4, 2010 at 6:16 PM, Bruno Luciani <bruno.luci...@gmail.com>wrote:
>
>> This is hbmysql.hbc , hbmysql.a it is correct exist
>>
>> but whic library is mysql  ???
>>
>> What I am doing wrong ?
>>
>> Bruno
>>
>>
>> #
>> # $Id: hbmysql.hbc 13881 2010-02-15 22:48:29Z vszakats $
>> #
>>
>> incpaths=.
>>
>> libs=hbmysql
>> {unix}libs=mysql
>> {!unix}libs=libmysql
>>
>>
>> //////////////////////////////////
>> ERROR/////////////////////////////////////////////////////////
>>
>> br...@notebook:~/harbour-project/harbour/contrib/hbmysql/tests$ hbmk2
>> test
>> hbmk2: Processing local make script: hbmk.hbm
>> hbmk2: Processing configuration: /usr/local/bin/hbmk.cfg
>> Harbour 2.1.0dev (Rev. 14025)
>> Copyright (c) 1999-2010, http://www.harbour-project.org/
>> Compiling 'test.prg'...
>> Lines 205, Functions/Procedures 1
>> Generating C source output to '/tmp/test.c'... Done.
>> /usr/bin/ld: cannot find -lmysql
>> collect2: ld returned 1 exit status
>> hbmk2: Error: Running linker. 1
>> gcc /tmp/test.o /tmp/hbmk_tfjuah.o   -Wl,--start-group -lhbmysql -lmysql
>> -lhbcplr -lhbdebug -lgpm -lharbour  -Wl,--end-group -otest
>> -L/usr/local/lib/harbour
>> br...@notebook:~/harbour-project/harbour/contrib/hbmysql/tests$ hbmk2
>> test
>>
>>
>>
>>
>> _______________________________________________
>> Harbour mailing list (attachment size limit: 40KB)
>> Harbour@harbour-project.org
>> http://lists.harbour-project.org/mailman/listinfo/harbour
>>
>>
>
>
> --
> smu johnson <smujohn...@gmail.com>
>
>
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
>
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to