C++ & mysql
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
    Posts
    83

    C++ & mysql

    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

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,632

    Re: C++ & mysql

    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?
    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
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  3. #3
    Join Date
    May 2010
    Posts
    3

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center