How do I build using a 3rd-party dll?

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
LarryEvilsizer
In need of some credit
In need of some credit
Posts: 1
Joined: Tue Jul 04, 2006 2:08 pm

How do I build using a 3rd-party dll?

Post by LarryEvilsizer »

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
mich181189
In need of some credit
In need of some credit
Posts: 3
Joined: Tue Jul 04, 2006 11:05 pm

Post by mich181189 »

are you including the header files?
Peterj
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Nov 14, 2005 6:48 pm
Location: Australia

Post by Peterj »

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
Using Win XP, Dev C++ 4.9.9.2 wx-beta 6.9
Post Reply