...

View Full Version : MySQL and C++?



thiscolddecembe
10-14-2007, 04:00 PM
Hey. I just started learning C++ and I'm curious about if there's a way to use MySQL in C++.
I tried downloading MySQL++, but it only came in a .tar.gz file. Is there another way to connect, or can someone guide me? I'm using Dev-C++ at the moment. (I'd change to another editor / compiler / IDE if needed, though)

marek_mar
10-14-2007, 11:15 PM
Did you extract it?

thiscolddecembe
10-15-2007, 04:40 PM
Um :O how?

ralph l mayo
10-15-2007, 04:51 PM
http://www.google.com/search?q=how+do+I+extract+a+tar.gz+file

thiscolddecembe
10-16-2007, 12:09 AM
Downloaded Winzip -> Installed -> Unzipped -> Added to Dev-C++ Include Library -> [current place]

I tried including "mysql++" (using: #include <mysql++>) but it said it didn't exist. Am I doing it wrong? Can someone show me how to do it, or show a tutorial? ._.

oracleguy
10-16-2007, 02:14 AM
I'm pretty sure the main header file is called mysql++.h not just mysql++

thiscolddecembe
10-18-2007, 08:44 PM
I replaced #include<mysql++> with #include<mysql++.h>, but it gave more errors (dir. could not be found).
I went through and I replaced all the mysql libraries with the ones I downloaded (and they are all in there), and mysql++ DOES exist in that folder where all the other includes are.

What do I do? :o



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum