AW: [Dev-C++] Trying to link libmysqld.lib
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Josep S. <sub...@ar...> - 2004-03-07 11:57:34
|
Thanks Emiliano for your answer. It seems that that's not the problem: Dev-c++ CAN FIND libmysqld.lib. It's only that when trying to link it fails and produces the log message included in my first email: Compiler: Default compiler Building Makefile: "E:\c++\mysql\devc++\Makefile.win" Executing make... make.exe -f "E:\c++\mysql\devc++\Makefile.win" all g++.exe EXE/test_dll.o EXE/StdAfx.o -o "EXE\test_dll.exe" -L"C:/Programme/Dev-Cpp/lib" release/libmysqld.lib 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' .... I also include in this email the c++ source code which I'm trying to link= to libmysqld.lib. Josep -----Urspr=FCngliche Nachricht----- Von: dev...@li... [mailto:dev...@li...]Im Auftrag von Emiliano Gesendet: Sonntag, 7. M=E4rz 2004 12:21 An: DEV-C++ Betreff: Re: [Dev-C++] Trying to link libmysqld.lib Alle 10:25, domenica 7 marzo 2004, Josep Subirana ha scritto: > Hi, > > I've got the library libmysqld.lib which links under MS VC++ without > problem. > But when I try to compile the same files + lib with Dev-C++ I get the > Linker Error > below... What am I doing wrong??? I'm still a beginner and I could be wrong, but try to put, manually, this into the linker options: -lmysqld ...obviously you should have copied the library into "/lib/" or added the correct path to the library into the project options. Regards, Emiliano ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ 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 |