Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
MySQL linker issues '--enable-auto-import' related

 
Post new topic   Reply to topic Printable version
 View previous topic  I was wondering... Post :: Post Quick Reply for phpbb Forums  View next topic  
Author Message
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Fri Jun 03, 2005 10:33 pm   Post maybe stupid    Post subject: MySQL linker issues '--enable-auto-import' related Reply to topic Reply with quote

So, I decided to go w/ DevC++ for MervBot plugins to start using a new compiler, so on and so forth - I have the MySQL libraries and include files in their appropriate locations but I am getting a ton of errors below (I have a misleading project name mysql.exe -- I'm not trying to compile the server nor a plugin just a plain ol command console)--

Code: Show/Hide
Compiler: Default compiler
Building Makefile: "C:\Projects\B45\mysql\Makefile.win"
Executing  make clean
rm -f main.o  mysql.exe

g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/Program Files/MySQL/MySQL Server 4.1/include"   

g++.exe main.o  -o "mysql.exe" -L"C:/Dev-Cpp/lib" "../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib" 

../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/client.obj)(.text[_mysql_read_default_options]+0x2cf):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_load_defaults]+0x1a5):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_load_defaults]+0x2a1):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_search_default_file_with_ext]+0x1a0):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_search_default_file_with_ext]+0x699):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_get_argument]+0x79):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_print_defaults]+0x34):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_print_defaults]+0x104):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_print_defaults]+0x13a):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_print_defaults]+0x159):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_print_defaults]+0x167):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_thr_init.obj)(.text[_my_thread_global_init]+0x1e):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_messnc.obj)(.text[_my_message_no_curses]+0x1):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_messnc.obj)(.text[_my_message_no_curses]+0x16):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_messnc.obj)(.text[_my_message_no_curses]+0x2e):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_messnc.obj)(.text[_my_message_no_curses]+0x39):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_messnc.obj)(.text[_my_message_no_curses]+0x4f):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_messnc.obj)(.text[_my_message_no_curses]+0x5a):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_messnc.obj)(.text[_my_message_no_curses]+0x66):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/client.obj)(.text[_my_connect]+0x10):C:\cygwin\home\mys: undefined reference to `connect@12'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/client.obj)(.text[_mysql_real_connect@32]+0x374):C:\cygwin\home\mys: undefined reference to `socket@12'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/client.obj)(.text[_mysql_real_connect@32]+0x3a0):C:\cygwin\home\mys: undefined reference to `WSAGetLastError@0'

../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/client.obj)(.text[_mysql_real_connect@32]+0x3f4):C:\cygwin\home\mys: undefined reference to `inet_addr@4'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/client.obj)(.text[_mysql_real_connect@32]+0x4b2):C:\cygwin\home\mys: undefined reference to `htons@4'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/client.obj)(.text[_mysql_real_connect@32]+0x4f7):C:\cygwin\home\mys: undefined reference to `WSAGetLastError@0'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/libmysql.obj)(.text[_mysql_server_init@12]+0x56):C:\cygwin\home\mys: undefined reference to `getservbyname@8'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/libmysql.obj)(.text[_mysql_server_init@12]+0x66):C:\cygwin\home\mys: undefined reference to `ntohs@4'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/default.obj)(.text[_search_default_file_with_ext]+0x6):C:\cygwin\home\mys: undefined reference to `_chkstk'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_errno]+0x1):C:\cygwin\home\mys: undefined reference to `WSAGetLastError@0'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_read]+0x14):C:\cygwin\home\mys: undefined reference to `recv@16'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_write]+0x14):C:\cygwin\home\mys: undefined reference to `send@16'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_fastsend]+0x1c):C:\cygwin\home\mys: undefined reference to `setsockopt@20'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_keepalive]+0x33):C:\cygwin\home\mys: undefined reference to `setsockopt@20'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_should_retry]+0x1):C:\cygwin\home\mys: undefined reference to `WSAGetLastError@0'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_close]+0x36):C:\cygwin\home\mys: undefined reference to `shutdown@8'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_close]+0x45):C:\cygwin\home\mys: undefined reference to `closesocket@4'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_peer_addr]+0x40):C:\cygwin\home\mys: undefined reference to `getpeername@12'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_peer_addr]+0x65):C:\cygwin\home\mys: undefined reference to `ntohs@4'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/viosocket.obj)(.text[_vio_timeout]+0x31):C:\cygwin\home\mys: undefined reference to `setsockopt@20'

../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_gethostbyname.obj)(.text[_my_gethostbyname_r]+0x12):C:\cygwin\home\mys: undefined reference to `gethostbyname@4'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_gethostbyname.obj)(.text[_my_gethostbyname_r]+0x19):C:\cygwin\home\mys: undefined reference to `WSAGetLastError@0'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_init.obj)(.text[_my_end]+0x54):C:\cygwin\home\mys: undefined reference to `WSACleanup@0'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_init.obj)(.text[_win32_init_tcp_ip]+0x17):C:\cygwin\home\mys: undefined reference to `WSAStartup@8'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_init.obj)(.text[_win32_init_tcp_ip]+0x20):C:\cygwin\home\mys: undefined reference to `WSACleanup@0'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_init.obj)(.text[_win32_init_tcp_ip]+0x34):C:\cygwin\home\mys: undefined reference to `WSACleanup@0'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_init.obj)(.text[_win32_init_tcp_ip]+0x40):C:\cygwin\home\mys: undefined reference to `WSAStartup@8'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/longlong2str.obj)(.text[_longlong2str]+0xa5):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/longlong2str.obj)(.text[_longlong10_to_str]+0x69):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-simple.obj)(.text[_my_strntoll_8bit]+0x6e):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-simple.obj)(.text[_my_strntoll_8bit]+0x81):C:\cygwin\home\mys: undefined reference to `_aullrem'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-simple.obj)(.text[_my_strntoll_8bit]+0xf3):C:\cygwin\home\mys: undefined reference to `_allmul'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-simple.obj)(.text[_my_strntoull_8bit]+0x6e):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-simple.obj)(.text[_my_strntoull_8bit]+0x81):C:\cygwin\home\mys: undefined reference to `_aullrem'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-simple.obj)(.text[_my_strntoull_8bit]+0xf3):C:\cygwin\home\mys: undefined reference to `_allmul'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-simple.obj)(.text[_my_longlong10_to_str_8bit]+0x87):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_net.obj)(.text[_my_inet_ntoa]+0x11):C:\cygwin\home\mys: undefined reference to `inet_ntoa@4'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strntoll_ucs2]+0x86):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strntoll_ucs2]+0x9d):C:\cygwin\home\mys: undefined reference to `_aullrem'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strntoll_ucs2]+0x129):C:\cygwin\home\mys: undefined reference to `_allmul'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strntoull_ucs2]+0x86):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strntoull_ucs2]+0x9d):C:\cygwin\home\mys: undefined reference to `_aullrem'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strntoull_ucs2]+0x129):C:\cygwin\home\mys: undefined reference to `_allmul'

../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_ll10tostr_ucs2]+0x5c):C:\cygwin\home\mys: undefined reference to `_aulldiv'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strtoll10_ucs2]+0x249):C:\cygwin\home\mys: undefined reference to `_allmul'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/ctype-ucs2.obj)(.text[_my_strtoll10_ucs2]+0x270):C:\cygwin\home\mys: undefined reference to `_allmul'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_strtoll10.obj)(.text[_my_strtoll10]+0x226):C:\cygwin\home\mys: undefined reference to `_allmul'
../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib(./release/my_strtoll10.obj)(.text[_my_strtoll10]+0x24d):C:\cygwin\home\mys: undefined reference to `_allmul'
fu000002.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000006.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
nmth000000.oInfo: resolving __iob by linking to __imp___iob (auto-import)

Info: resolving __pctype by linking to __imp___pctype (auto-import)
Info: resolving ___mb_cur_max by linking to __imp____mb_cur_max (auto-import)
(.idata$4+0x0): undefined reference to `_nm___iob'
nmth000001.o(.idata$4+0x0): undefined reference to `_nm___pctype'
nmth000004.o(.idata$4+0x0): undefined reference to `_nm____mb_cur_max'
collect2: ld returned 1 exit status

make.exe: *** [mysql.exe] Error 1

Execution terminated


This is my make file.
Quote:
# Project: mysql
# Makefile created by Dev-C++ 4.9.9.2

CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = main.o $(RES)
LINKOBJ = main.o $(RES)
LIBS = -L"C:/Dev-Cpp/lib" "../../../Program Files/MySQL/MySQL Server 4.1/lib/opt/mysqlclient.lib"
INCS = -I"C:/Dev-Cpp/include" -I"C:/Program Files/MySQL/MySQL Server 4.1/include"
CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Program Files/MySQL/MySQL Server 4.1/include"
BIN = mysql.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before mysql.exe all-after


clean: clean-custom
${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "mysql.exe" $(LIBS)

main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)


I'm not the only one who had the issue but no one had posted a solution to it. Any help would be appreciated. Thanks in advance!
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sun Jun 05, 2005 4:40 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Well, according to the reply posted to this question it's not possible to use MinGW to compile it so you'll have to use VC++.

Anyway, let's read some man pages.

Code: Show/Hide
--enable-auto-import
      Do sophisticated linking of "_symbol" to "__imp__symbol"  for  DATA
      imports  from  DLLs, and create the necessary thunking symbols when
      building the import libraries with those DATA exports. Note: Use of
      the   'auto-import'  extension  will   cause  the text section of the
      image file to be made writable. This does not conform  to  the  PE-
      COFF format specification published by Microsoft.

      Using 'auto-import' generally will 'just work' -- but sometimes you
      may see this message:

      "variable '<var>' can't be auto-imported. Please read the  documen-
      tation for ld's "--enable-auto-import" for details."

      This  message  occurs when some (sub)expression accesses an address
      ultimately given by the sum of two constants (Win32   import   tables
      only  allow   one).  Instances where this may occur include accesses
      to member fields of struct variables imported from a DLL,  as  well
      as  using  a  constant index into an array variable imported from a
      DLL.  Any multiword variable (arrays, structs, long long, etc)  may
      trigger  this  error  condition.   However, regardless of the exact
      data type of the offending exported variable, ld will always detect
      it, issue the warning, and exit.

      There  are  several   ways to address this difficulty, regardless of
      the data type of the exported variable:

      One way is to use --enable-runtime-pseudo-reloc switch. This leaves
      the   task  of  adjusting references in your client code for runtime
      environment, so this method works  only  when  runtime  environment
      supports this feature.

      A  second solution is to force one of the 'constants' to be a vari-
      able -- that is, unknown and un-optimizable at compile  time.   For
      arrays,  there  are   two  possibilities:  a)  make the indexee (the
      array's address) a variable, or b)  make  the  'constant'  index  a
      variable.  Thus:

         extern type extern_array[];
         extern_array[1] -->
            { volatile type *t=extern_array; t[1] }

      or

         extern type extern_array[];
         extern_array[1] -->
            { volatile int t=1; extern_array[t] }

      For   structs  (and most other multiword data types) the only option
      is to make the struct itself (or the long long, or the  ...)  vari-
      able:

         extern struct s extern_struct;
         extern_struct.field -->
            { volatile struct s *t=&extern_struct; t->field }

      or

         extern long long extern_ll;
         extern_ll -->
           { volatile long long * local_ll=&extern_ll; *local_ll }

      A  third  method  of  dealing  with   this  difficulty is to abandon
      'auto-import'  for  the  offending  symbol   and   mark   it   with
      "__declspec(dllimport)".   However, in practise that requires using
      compile-time #defines to indicate whether you are building  a  DLL,
      building  client  code  that will link to the DLL, or merely build-
      ing/linking to a static library.   In making the choice between the
      various methods of resolving the 'direct address with constant off-
      set' problem, you should consider typical real-world usage:

      Original:

         --foo.h
         extern int arr[];
         --foo.c
         #include "foo.h"
         void main(int argc, char **argv){
           printf("%d\n",arr[1]);
         }

      Solution 1:

         --foo.h
         extern int arr[];
         --foo.c
         #include "foo.h"
         void main(int argc, char **argv){
           /* This workaround is for win32 and cygwin; do not "optimize" */
           volatile int *parr = arr;
           printf("%d\n",parr[1]);
         }

      Solution 2:

         --foo.h
         /* Note: auto-export is assumed (no __declspec(dllexport)) */
         #if (defined(_WIN32) || defined(__CYGWIN__)) && \
           !(defined(FOO_BUILD_DLL) || defined(FOO_STATIC))
         #define FOO_IMPORT __declspec(dllimport)
         #else
         #define FOO_IMPORT
         #endif
         extern FOO_IMPORT int arr[];
         --foo.c
         #include "foo.h"
         void main(int argc, char **argv){
           printf("%d\n",arr[1]);
         }

      A fourth way to avoid this problem is to re-code  your  library  to
      use   a  functional  interface  rather than a data interface for the
      offending variables (e.g. set_foo() and  get_foo()  accessor  func-
      tions).   [This  option is specific to the i386 PE targeted port of
      the linker]


Does that help anything? sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Jun 05, 2005 5:08 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

I wonder why there is no such notice on the MySQL tech pages under their note of what you need to pass to the compiler to compile w/ Win32. Not to be able to compile w/o MS' compiler, just sucks. :/

Like okay I could compile w/ VC++ 6.0 but I hear its probably one of the worse compilers out there. I do have VS .NET 2002 academic - but it can't run well on my machine - i do know MS released free compilers for C++ but being stuck on 56k I'm not going to download 300+ MB.

So, I guess I am stuck w/ using the MSC++ 6.0 compiler. :/ *gr* Any suggestions?
Back to top
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sun Jun 05, 2005 6:11 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

It is a good compiler. I have never had a problem with it. The free VC++ toolkit comes with everything you need.

Maybe this page will help you with mingw
http://www.synnottsoftware.com/tutorials/mysqlwindows.php
_________________
Current Terror Alert Level
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Jun 05, 2005 8:41 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

thanks guys - i'm downloading the 80MB of VC++ 2005 Express Edition...
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 23 page(s) served in previous 5 minutes.

phpBB Created this page in 0.561003 seconds : 29 queries executed (86.2%): GZIP compression disabled