CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: C++ & mysql

  1. #1
    Join Date
    May 2010

    C++ & mysql


    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,


  2. #2
    Join Date
    Oct 2006

    Re: C++ & mysql

    Just guessing here but README-Visual-C++.txt states:
    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?
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here

    Get your free MS compiler here

  3. #3
    Join Date
    May 2010

    Re: C++ & mysql

    MySQL != MS SQL ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.