1 message in com.mysql.lists.win32Compile error with libmysql - missing...| From | Sent On | Attachments |
|---|---|---|
| Sun, Andrew Y | 08 Dec 1999 16:29 |
| Subject: | Compile error with libmysql - missing symbols.![]() |
|---|---|
| From: | Sun, Andrew Y (andr...@intel.com) |
| Date: | 12/08/1999 04:29:52 PM |
| List: | com.mysql.lists.win32 |
Hi,
I'm getting the following linking errors with the Win32 MySQL 3.22.28 source (with both MS VC++5.0 and 6.0) while trying to compile libmysql: Linking... LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification libmysql.def : error LNK2001: unresolved external symbol mysql_affected_rows libmysql.def : error LNK2001: unresolved external symbol mysql_eof libmysql.def : error LNK2001: unresolved external symbol mysql_errno libmysql.def : error LNK2001: unresolved external symbol mysql_error libmysql.def : error LNK2001: unresolved external symbol mysql_fetch_field_direct libmysql.def : error LNK2001: unresolved external symbol mysql_fetch_fields libmysql.def : error LNK2001: unresolved external symbol mysql_field_count libmysql.def : error LNK2001: unresolved external symbol mysql_field_tell libmysql.def : error LNK2001: unresolved external symbol mysql_info libmysql.def : error LNK2001: unresolved external symbol mysql_insert_id libmysql.def : error LNK2001: unresolved external symbol mysql_num_fields libmysql.def : error LNK2001: unresolved external symbol mysql_num_rows libmysql.def : error LNK2001: unresolved external symbol mysql_row_tell libmysql.def : error LNK2001: unresolved external symbol mysql_thread_id debug/libmySQL.lib : fatal error LNK1120: 14 unresolved externals
The missing symbols are macros defined in include\mysql.h. I am confused by this arrangement - since the missing names are macros (text replacement at compile time,) shouldn't the symbols not exist? Perhaps there is a compiler flag that can fix this problem? I've tried adding mysqlclient.lib to the project without any luck. For now, I worked around the problem by translating all the macros into functions, but the resulting libmysql.dll doesn't seem to quite work with a PHP3 & Apache setup. Can someone please help?
Thank you, Andrew
----------------------------- Andrew Sun Rotation Engineer Intel Corp. andr...@intel.com (408)765-9390
-----------------------------




