Hi,
Please excuse this obvious newbie question, but I come from a Java background. I'm trying to build a project with wxDev-C++ using the mysql++ dll and am not sure how to do this. I've tried loading the dll via project options->Parameters->add library and have set the library directories to the path where the dll is located, but it isn't working.
By looking through the posts, it is clear that what I want to do can be done, but I am at a loss as to how to do it.
Thanks for your help,
Larry
How do I build using a 3rd-party dll?
-
- In need of some credit
- Posts: 1
- Joined: Tue Jul 04, 2006 2:08 pm
-
- In need of some credit
- Posts: 3
- Joined: Tue Jul 04, 2006 11:05 pm
If it is any help, the following is the way I have set up mysql:
In the Project ->Project Options menu, Parameters tab, Linker option I have added:
-lmysql
I have the libmysql.dll sitting in the same folder as my project.
Under the dev-cpp\include folder, I have added a mysql folder which contains mysql.h, mysql_com.h etc....
I have set up a single .cpp and header file that I use to hold all of the classes and functions that directly access mysql. In the header file I have the
#include <mysql/mysql.h>
statement.
I hope this helps,
Regards,
Peter
In the Project ->Project Options menu, Parameters tab, Linker option I have added:
-lmysql
I have the libmysql.dll sitting in the same folder as my project.
Under the dev-cpp\include folder, I have added a mysql folder which contains mysql.h, mysql_com.h etc....
I have set up a single .cpp and header file that I use to hold all of the classes and functions that directly access mysql. In the header file I have the
#include <mysql/mysql.h>
statement.
I hope this helps,
Regards,
Peter
Using Win XP, Dev C++ 4.9.9.2 wx-beta 6.9