Click to See Complete Forum and Search --> : C++ & mysql


felix1432
May 16th, 2010, 06:12 AM
Hi,

I am trying to upload some values to a mysql databse on my server.
I downloaded the mysql++ files here: http://tangentsoft.net/mysql++/

But when i import mysql++.h it keeps moaning about a missing mysql_version.h.
I am not able to find such a file though...?

Do you know of any example code?
Or how i can use the "MS SQL server 2008", which came with my ms vc++ express edition 08?


any help is appreciated,

flx :)

S_M_A
May 16th, 2010, 12:43 PM
Just guessing here but README-Visual-C++.txt states:Prerequisites
~~~~~~~~~~~~~
You need to have the Windows version of the MySQL server installed
on your development system, even if you always access a MySQL
server on a different machine. This is because in addition to
installing the server itself, the official MySQL Windows binaries
also install the client-side development files that MySQL++
needs in order to communicate with a MySQL server.

You have to do a Custom install to enable installation of these
development files. If you get an error about mysql-version.h or
mysql.h when building MySQL++, go back and reinstall the MySQL
server, paying careful attention to the options.

If you've installed the development files and are still getting
header file include errors, read on.


Building the Library and Example Programs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you installed the MySQL server somewhere other than

C:\Program Files\MySQL\MySQL Server 5.0\ Maybe mysql_version.h is part of the MYSQL server installation?

gimbli
May 19th, 2010, 01:57 PM
MySQL != MS SQL ?