|
From: <ra...@am...> - 2002-07-26 08:52:52
|
Hello,
I'm new to DevC++(V4.9.4.1) and I have problems to link to libmySQL.dll.
Here is what I'm doing:
I create a new project 'GUI' using FLTK.
I copy all headers file and dll to project directory.
I create libmySQL.def file using impdef.exe from Borland BCC55.
I create libmySQL.a using dlltool.exe
I add -lmysql to 'Linker Options/Optional Libs or Object files:' on
'General' Tab from Project Options dialog
I add #include "mysql.h" and some code to create a connection to mysql
server. The project compiles but Linker reports 2 errors:
undefined reference to mysql_init@4,
undefined reference to mysql_real_connect@32.
I don't know where I want to go after that! What did I miss?
Hope someone can help me
Many thanks
__|||__
@(° °)@
----------------------------oOO--(_)--OOo----------------------------
Raphaël Bollen
Project engineer
Ampco Belgium
http://www.ampcobelgium.be
http://www.audiodeal.net
mailto:ra...@am...
Hoek 76, unit 72
2850 Boom
TEL.: 03 844 67 97
FAX: 03 844 67 46
|