I am buiding an extension to tcl which involves linking to the mysql library. I have done this before on Microsoft VC5.0 but nolonger have access to that and so am using Cygwin & Mingw.
Trying to build my extension I get the following output, any ideas or help would be greatly appreciated. NOW - I REMEMBER SOMETHING ABOUT these commands being defined as macros and this had something to do with the errors I am getting (eg: mysql_error, mysql_close, mysql_affected_rows etc). $ gcc -Wall -DWINDOWS -Ic:/tcl/include -Ic:/mysql/include fbsql.c -shared -o fbsql.dll - Lc:/tcl/lib -ltcl83 -Lc:/mysql/lib/o pt -lwsock32 -llibmysql -lz c:\windows\TEMP\ccd8QUfb.o(.text+0x3a):fbsql.c: undefined reference to `mysql_error@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x67):fbsql.c: undefined reference to `mysql_errno@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x1be):fbsql.c: undefined reference to `mysql_connect@16' c:\windows\TEMP\ccd8QUfb.o(.text+0x2af):fbsql.c: undefined reference to `mysql_close@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x447):fbsql.c: undefined reference to `mysql_select_db@8' c:\windows\TEMP\ccd8QUfb.o(.text+0x6f3):fbsql.c: undefined reference to `mysql_query@8' c:\windows\TEMP\ccd8QUfb.o(.text+0x743):fbsql.c: undefined reference to `mysql_use_result@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x772):fbsql.c: undefined reference to `mysql_field_count@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x7cf):fbsql.c: undefined reference to `mysql_affected_rows@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x828):fbsql.c: undefined reference to `mysql_fetch_row@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x920):fbsql.c: undefined reference to `mysql_num_rows@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x953):fbsql.c: undefined reference to `mysql_free_result@4' c:\windows\TEMP\ccd8QUfb.o(.text+0xd8f):fbsql.c: undefined reference to `mysql_query@8' c:\windows\TEMP\ccd8QUfb.o(.text+0xde5):fbsql.c: undefined reference to `mysql_use_result@4' c:\windows\TEMP\ccd8QUfb.o(.text+0xe37):fbsql.c: undefined reference to `mysql_store_result@4' c:\windows\TEMP\ccd8QUfb.o(.text+0xe85):fbsql.c: undefined reference to `mysql_num_rows@4' c:\windows\TEMP\ccd8QUfb.o(.text+0xed3):fbsql.c: undefined reference to `mysql_field_count@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x10a9):fbsql.c: undefined reference to `mysql_fetch_row@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x11a1):fbsql.c: undefined reference to `mysql_fetch_field_direct@8' c:\windows\TEMP\ccd8QUfb.o(.text+0x1381):fbsql.c: undefined reference to `mysql_fetch_field_direct@8' c:\windows\TEMP\ccd8QUfb.o(.text+0x17ad):fbsql.c: undefined reference to `mysql_num_rows@4' c:\windows\TEMP\ccd8QUfb.o(.text+0x17fd):fbsql.c: undefined reference to `mysql_free_result@4' Peter Campbell http://www.fastbase.co.nz Phone NZ 04 385 2230, Fax 04 385 2224. --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php