|
From: Yeoh H. <ye...@ya...> - 2001-04-13 07:18:55
|
Hi, I'm trying to use Dev-C++ 4 to write a simple Win32 client to logon to a mySQL server. I have mySQL installed on Win98 standalone PC. This is a fresh install. The Dev-C++ project file is set to the include file mysql.h and the lib file libmysql.lib. There is also a libmysql.def in the include dir and the dll file libmysql.dll is in the working directory. My test program compiles okay but there is a linker error. Here's the linker error: d:\devcpp\login.o(.text+0x5c):login.cpp: undefined reference to `mysql_init@4' It appears that Dev-C++ is not able to link with libmysql.lib. This libmysql.lib file is from the mysql++ VC++ version package. Also, I've used dlltool.exe to create libmysql.lib from libmysql.dll but the linker error is still the same. What am I missing here? What options do I have? Perhaps load the libmysql.dll via LoadLibrary function? Tested my program using BCC5.5 and it compiles, links (with the lib for BCC5.5) and runs okay. Would appreciate any help. Thanks in advance. Yeoh _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |