[Dev-C++] Trying to link libmysqld.lib (Update)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Josep S. <sub...@ar...> - 2004-03-07 13:32:46
|
I thought maybe the lib for embedded mysql that comes with mysql is intended for VisualC++ and that could be the reason why it doesn't work with Dev-C++... I have generated a libmysqld.def file with impdef( http://webclub.kcom.ne.jp/ma/colinp/gcc.html) and then the library libmysqld.a with dlltool (<-- included with mingw) but to no avail: Dev-C++ keeps spitting the same error (see below) log out when trying to compile this new lib! Anyone has an idea??? Compiler: Default compiler Building Makefile: "E:\c++\mysql\devc++\Makefile.win" Executing make clean rm -f EXE/test_dll.o EXE/StdAfx.o EXE/test_dll.exe g++.exe -c test_dll.cpp -o XE/test_dll.o -I"C:/Programme/Dev-Cpp/include/c++" -I"C:/Programme/Dev-Cpp/ include/c++/mingw32" -I"C:/Programme/Dev-Cpp/include/c++/backward" -I"C:/P rogramme/Dev-Cpp/include" -I"E:/c++/mysql/devc++/include" g++.exe -c StdAfx.cpp -o XE/StdAfx.o -I"C:/Programme/Dev-Cpp/include/c++" -I"C:/Programme/Dev-Cpp/in clude/c++/mingw32" -I"C:/Programme/Dev-Cpp/include/c++/backward" -I"C:/Pro gramme/Dev-Cpp/include" -I"E:/c++/mysql/devc++/include" g++.exe EXE/test_dll.o EXE/StdAfx.o -o "EXE\test_dll.exe" -L"C:/Programme/Dev-Cpp/lib" release/libmysqld.a EXE/test_dll.o(.text+0x79):test_dll.cpp: undefined reference to `mysql_server_init@12' EXE/test_dll.o(.text+0xd0):test_dll.cpp: undefined reference to `mysql_close@4' EXE/test_dll.o(.text+0xde):test_dll.cpp: undefined reference to `mysql_close@4' EXE/test_dll.o(.text+0xe6):test_dll.cpp: undefined reference to `mysql_server_end@0' EXE/test_dll.o(.text+0x1aa):test_dll.cpp: undefined reference to `mysql_init@4' EXE/test_dll.o(.text+0x1db):test_dll.cpp: undefined reference to `mysql_options@12' EXE/test_dll.o(.text+0x1f5):test_dll.cpp: undefined reference to `mysql_real_connect@32' EXE/test_dll.o(.text+0x207):test_dll.cpp: undefined reference to `mysql_error@4' |