|
From: Per W. <pw...@ia...> - 2003-10-29 22:58:53
|
Where did you inform DevC++ that you wanted to link your application with the mysql library? From the compiler output, you can see where the linker looks for libraries (-L"C:/Dev-Cpp/lib"). However, that is not enough. You also have to tell it which extra libraries you need, such as -lmySQL. Did you try c:\Dev-Cpp\Examples\MySQLClientTest? /Per W On Wed, 29 Oct 2003, Guillermo Krepper wrote: > Hi, > =09I=B4m just starting to do some tests with MySQL, downloaded and > installed the Dev Pack. When I compile a simple test application I get > this link error. > Need some advise, thanks. > > ---------- > Compiler: Default compiler > Building Makefile: "D:\Dev\C++\sql\Makefile.win" > Executing make... > make.exe -f "D:\Dev\C++\sql\Makefile.win" all > g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" > -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" > -I"C:/Dev-Cpp/include" > g++.exe main.o -o "testSQL.exe" -L"C:/Dev-Cpp/lib" > main.o(.text+0xfc):main.cpp: undefined reference to `mysql_init@4' > make.exe: *** [testSQL.exe] Error 1 > Execution terminated > ---------- > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |