www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - mySQL: still trying

↑ ↓ ← "Ben Jones"<ben.jones infosis1.com> writes:
OK,

I fixed the undefined typedef my_Socket by using the __LCC__ define statement.

So I have finally arrived at the link errors: examples,

Error: E:\TEST\test.OBJ(test)  (1454396): Symbol Undefined _mysql_fetch_row 4
Error: E:\TEST\test.OBJ(test)  (1229728): Symbol Undefined _mysql_store_result 4

This is after using the import librarian to change "libmysql.dll" into a dmc LIB
format and placing it in a correct path. COFF2OMF from the original libmysql.lib
does not work either.

Any suggestions?

Ben
Mar 17 2003
↑ ↓ → Richard Grant <fractal clark.net> writes:
In article <b55bdb$2d5s$1 digitaldaemon.com>, Ben Jones says...

Error: E:\TEST\test.OBJ(test)  (1454396): Symbol Undefined _mysql_fetch_row 4
Error: E:\TEST\test.OBJ(test)  (1229728): Symbol Undefined 
This is after using the import librarian to change "libmysql.dll" into a dmc

Sorry about the big post.. take the following and paste into libmySQL.def, and then use: implib libmySQL.lib libmySQL.def add libmySQL.lib to your project, or link against libmySQL.lib, and make sure libmySQL.dll is able to be found. I used mysql\lib\debug\libmySQL.dll as source for the .def file. Richard ======> LIBRARY libmySQL EXETYPE NT SUBSYSTEM WINDOWS EXPORTS _myodbc_remove_escape 8 = myodbc_remove_escape _mysql_affected_rows 4 = mysql_affected_rows _mysql_change_user 16 = mysql_change_user _mysql_character_set_name 4 = mysql_character_set_name _mysql_close 4 = mysql_close _mysql_connect 16 = mysql_connect _mysql_create_db 8 = mysql_create_db _mysql_data_seek 12 = mysql_data_seek _mysql_debug 4 = mysql_debug _mysql_drop_db 8 = mysql_drop_db _mysql_dump_debug_info 4 = mysql_dump_debug_info _mysql_eof 4 = mysql_eof _mysql_errno 4 = mysql_errno _mysql_error 4 = mysql_error _mysql_escape_string 12 = mysql_escape_string _mysql_fetch_field 4 = mysql_fetch_field _mysql_fetch_field_direct 8 = mysql_fetch_field_direct _mysql_fetch_fields 4 = mysql_fetch_fields _mysql_fetch_lengths 4 = mysql_fetch_lengths _mysql_fetch_row 4 = mysql_fetch_row _mysql_field_count 4 = mysql_field_count _mysql_field_seek 8 = mysql_field_seek _mysql_field_tell 4 = mysql_field_tell _mysql_free_result 4 = mysql_free_result _mysql_get_client_info 0 = mysql_get_client_info _mysql_get_host_info 4 = mysql_get_host_info _mysql_get_proto_info 4 = mysql_get_proto_info _mysql_get_server_info 4 = mysql_get_server_info _mysql_info 4 = mysql_info _mysql_init 4 = mysql_init _mysql_insert_id 4 = mysql_insert_id _mysql_kill 8 = mysql_kill _mysql_list_dbs 8 = mysql_list_dbs _mysql_list_fields 12 = mysql_list_fields _mysql_list_processes 4 = mysql_list_processes _mysql_list_tables 8 = mysql_list_tables _mysql_num_fields 4 = mysql_num_fields _mysql_num_rows 4 = mysql_num_rows _mysql_odbc_escape_string 28 = mysql_odbc_escape_string _mysql_options 12 = mysql_options _mysql_ping 4 = mysql_ping _mysql_port = mysql_port _mysql_query 8 = mysql_query _mysql_read_query_result 4 = mysql_read_query_result _mysql_real_connect 32 = mysql_real_connect _mysql_real_escape_string 16 = mysql_real_escape_string _mysql_real_query 12 = mysql_real_query _mysql_refresh 8 = mysql_refresh _mysql_row_seek 8 = mysql_refresh _mysql_row_tell 4 = mysql_row_tell _mysql_select_db 8 = mysql_select_db _mysql_send_query 12 = mysql_send_query _mysql_shutdown 4 = mysql_shutdown _mysql_stat 4 = mysql_stat _mysql_store_result 4 = mysql_store_result _mysql_thread_id 4 = mysql_thread_id _mysql_thread_safe 0 = mysql_thread_safe _mysql_unix_port = mysql_unix_port _mysql_use_result 4 = mysql_use_result
Mar 17 2003