GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Sep-2005, 03:01
Kjeksen Kjeksen is offline
Junior Member
 
Join Date: May 2005
Posts: 57
Kjeksen is on a distinguished road

MySQL++ with Dev-cpp = ?


Hi, im wondering to start with MySQL combined with C++, I have read that to do that u must have mySQL++. But i have tried to use it with Dev-cpp with no luck. I cant include the header mysql.h without getting alot of errors and stuff. Can you use mysql++ with dev-cpp?
  #2  
Old 05-Sep-2005, 10:11
maprich maprich is offline
Member
 
Join Date: May 2005
Posts: 163
maprich has a spectacular aura aboutmaprich has a spectacular aura about
Hi, if you are using dev-c++ i recommend you use libmysql devpak. Because you know, if you use devpaks it is zero configuration for you in most cases. And there are many other libraries too.. in my opinion a great convenience feature. Only that libmysql is a C library and maybe you wanted C++. Anyways in most cases it doesn't make dramatic difference as you can use C libraries in your C++ programs. And if you like you can make wrapper classes to encapsulate the C function calls to make it more object oriented.

In the other hand if you use the mySQL++ you should make sure that the library object (.dll or .a or (.lib and .def)) is in your /lib/ directory and that the headers are in /include/ directory. In addition you must instruct the linker to load the necessary libraries. That can be done in the IDE project settings. AND when I googled for mySQL++ I noticed the following:
  • mySQL++ is a wrapper for mySQL C library. Means that you have to have the C library first.
  • mySQL++ is distributed as source code and linux binaries. Since dev-c++ operates in MS windows you must compile and create the library from source code. And since it was dependent on the C library you must compile the C library first.
Seems like you have to take several steps before you have anything working. But since I have not experimented with aforementioned libraries it is just my academic guess about the subject. Who knows maybe someone is distributing precompiled version in internet and that is what you have in your pc. However if that is not the case then I recommend using libmysql.
 
 

Recent GIDBlog2nd Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FREE Hosting,400MB-10GIGS BW,phpBB,SMF,myBB,phpBB RPG,php,25 MySql db's,Z-panel..more cknetworx Free Web Hosting 6 27-Nov-2007 07:07
php and mysql vladimy MySQL / PHP Forum 2 28-May-2005 05:17
Starting Mysql server problem pjacks MySQL / PHP Forum 23 08-Sep-2004 17:23
Windows: From only £20p/y,Linux: from $10p/m. ASP, ASP.NET, PHP, Free MySQL, +More EyotaHosts Web Hosting Advertisements & Offers 0 28-Jun-2003 13:54

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:27.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.