hi

i'm trying to compile my C app using mysql embedded stuff, but i get the following 
linking error. is this a mysql 4.0.20 bug? should i replace -lmysqld with 
-lmysqlclient when compiling for embeeded mysql? (does solve the problem.....)

gcc -L/usr/lib/mysql -ofdlog fdlog.o util.o fdipc.o dblib.o dbembed.o -lmysqld 
-lpthread -lz -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv -lc 
-lnss_files -lnss_dns -lresolv -lrt
/usr/lib/mysql/libmysqld.a(libdata_data0data.o)(.text+0x534): In function 
`dfield_print':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdata_data0data.o)(.text+0x775): In function 
`dfield_print_also_hex':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_env_open.o)(.text+0x953): In function 
`__dbenv_config':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_env_open.o)(.text+0x1716): In function `__db_parse':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_env_open.o)(.text+0x176b): In function `__db_parse':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_env_open.o)(.text+0x17cb): more undefined references 
to `__ctype_b' follow
/usr/lib/mysql/libmysqld.a(libdict_dict0dict.o)(.text+0x50c1): In function 
`dict_scan_to':
: undefined reference to `__ctype_toupper'
/usr/lib/mysql/libmysqld.a(libdict_dict0dict.o)(.text+0x517a): In function 
`dict_accept':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdict_dict0dict.o)(.text+0x522e): In function 
`dict_scan_id':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdict_dict0dict.o)(.text+0x52a2): In function 
`dict_scan_id':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdict_dict0dict.o)(.text+0x66aa): In function 
`dict_create_foreign_constraints_low':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdict_dict0dict.o)(.text+0x6755): In function 
`dict_create_foreign_constraints_low':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdict_dict0dict.o)(.text+0x6ddd): more undefined 
references to `__ctype_b' follow
/usr/lib/mysql/libmysqld.a(libut_ut0byte.o)(.text+0x1eb): In function 
`ut_cpy_in_lower_case':
: undefined reference to `__ctype_tolower'
/usr/lib/mysql/libmysqld.a(libut_ut0byte.o)(.text+0x217): In function 
`ut_cmp_in_lower_case':
: undefined reference to `__ctype_tolower'
/usr/lib/mysql/libmysqld.a(libut_ut0ut.o)(.text+0x2fd): In function `ut_print_buf':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_btree_auto.o)(.text+0xb7a): In function 
`__bam_pg_free_print':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_btree_auto.o)(.text+0xeba): In function 
`__bam_pg_free1_print':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_btree_auto.o)(.text+0x127a): In function 
`__bam_split1_print':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_btree_auto.o)(.text+0x19bd): In function 
`__bam_split_print':
: undefined reference to `__ctype_b'
/usr/lib/mysql/libmysqld.a(libdb_btree_auto.o)(.text+0x1d7a): more undefined 
references to `__ctype_b' follow
collect2: ld returned 1 exit status
make: *** [fdlog] Error 1


Disclaimer
http://www.shoprite.co.za/disclaimer.html

Reply via email to