Trying to Build MySQL++ Libraries in Windows

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2008
Posts: 3,813
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Trying to Build MySQL++ Libraries in Windows

 
0
  #1
Apr 15th, 2008
Hi all,

I am trying to install MySQL++ on Windows XP and use it. I was able to install it in Linux because the website:

http://tangentsoft.net/mysql++/

provided an RPM that built the libraries for you. As far as I can tell, no such thing is supplied for Windows. Supposedly, MySQL++ " works out of the box with Visual C++ 2005 and 2008." (quote from above website). That may be true, but my problem is installing it. From the README file, it says this:

You must build both the Debug and Release versions of the library.
You will need them both because when you build your program in
Release mode, it won't work with a MySQL++ DLL built in Debug mode.
The simplest way to ensure that you're running your program against
the correct DLL is to copy the debug version of the MySQL++ DLL
into your program's Debug build directory, and the same for the
Release directory.
I don't have a clue how to do the top line of this, which appears to be a prerequisite for actually "installing" MySQL++ and running the examples. Has anyone done this successfully? Do they provide some way to "build" these Debug and Release libraries? Like I said, I've gotten it working in Linux, but they provided an rpm to build it there.

Thanks for any guidance. I'm using Visual C++ 2008, the non-Express version.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,381
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1466
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Trying to Build MySQL++ Libraries in Windows

 
-1
  #2
Apr 15th, 2008
Unlike *nix you can install the source code anywhere you like.

I downloaded mysql++-3.0.2.tar.gz and used WinZip to decompress it. In the uncompressed directory you will see volders for VC2003 and VC2005. Just fire up your compiler and select File --> Open --> Project Solution. Navigate to whereever you installed MySql++ and select mysql++.sln

I guess you have to have MySql server installed because I can't compile it the VC++ 2008 Express. mysql_version.h is not included in the above download.
Last edited by Ancient Dragon; Apr 15th, 2008 at 8:36 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,813
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: Trying to Build MySQL++ Libraries in Windows

 
0
  #3
Apr 15th, 2008
Thanks AD! I tried your suggestion and I've had some moderate success. Still playing around with it, but definitely much further along than before your advice. I guess that maybe all they meant by "build" the library was to simply pull down "Build" from the Visual C++ menu and select "Build Solution". I was wondering if it was more complicated than that, though I won't breathe easy till I can get it to at least what I've accomplished in Linux, hopefully with the same code.

Yes, you do have to install MySQL Server on your machine to get the necessary "include" files, even if you're only connecting to a remote server. You can probably delete everything but the include files if you're not using it as a database server. And FYI for anyone who runs across this thread in the future, when you install MySQL Server 5.0, make sure you DO NOT pick the default install option because I believe that the default installation doesn't contain those "include" files needed by MySQL++. You have to either choose the "Complete Installation" or choose "Custom Installation" and make sure you check the right box to install those header/development files.

Thanks again! I certainly haven't solved it yet, but I'm at least no longer at a complete dead end banging my head against the wall (though who knows, I probably will be soon ).
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,813
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: Trying to Build MySQL++ Libraries in Windows

 
0
  #4
Apr 19th, 2008
All right, I've got it to where I had it using Linux so I'm marking this solved. However, I have to also change it over to my laptop from my Desktop and I was having some difficulties with that so I may be be back with a new thread on THAT soon (hopefully not and it'll go seamlessly), but that'll be a separate thread. Thanks again AD.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC