Thread: Can't install Mysql++ api

  1. #1
    C++ Programmer
    Join Date
    Aug 2005
    Posts
    39

    Can't install Mysql++ api

    Hi,

    I'm trying to install the MySQL++ 2.0.2 for Microsoft Visual C++ 2005 beta 2.

    Like the readme.txt says:
    Before you build the library, make sure the environment variables that Visual C++ needs are set up. Recent versions of the Visual
    Studio installer put a special CMD.EXE shortcut in the Start menu
    in the same folder as the IDE shortcuts; run this shortcut to
    get a command prompt with the variables all set up. The older
    way (which still works) is to run the vcvars32 batch file that
    comes with the tools. (It may not be in your PATH by default,
    so you might have to search your hard drive for it.)

    To create the Makefiles, say "makemake vc" in the project's root
    directory. You only have to do this once, unless you change
    Makefile.base or Makefile.vc. This also starts building the
    library and the examples.
    I start the Visual C++ Commdand Line, type makemake vc, But then I get an error a header file isn't found. I found the source of that header using google, and added to my include directory. But then I get an error that another header file is missing. I added that one too, but then again, and again, and again, and again..

    But now I'm really tired of adding all those header files.

    How can I fix this?

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Wherever you found the header file, add that directory to the search path for include files.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    C++ Programmer
    Join Date
    Aug 2005
    Posts
    39
    That's not the problem, when I add the new header file, he does find the new header file. But then I get the error an other Header file is missing, and I'm tired of adding al those header files.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    Quote Originally Posted by MrLucky
    That's not the problem, when I add the new header file, he does find the new header file. But then I get the error an other Header file is missing, and I'm tired of adding al those header files.
    not sure what the problem is....

    but i noticed something. you're indian (mid-east) aren't you? it doesn't really matter, but i'm curious as to why mid-eastern people never use the word "it". (they usually say "he" for some reason)
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  5. #5
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Quote Originally Posted by MrLucky
    That's not the problem,
    yes, the new headers are all in the same folder.
    the folder is not in your default include path, so the headers are not found.

    I believe that the mysql++ lib is actually developed with vc++ version 6. ( ms's lack of compatability between versions of software bug / bad coding practice )

    did you set the environment variables the notes mention?
    or run the batch file to set them?
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  6. #6
    C++ Programmer
    Join Date
    Aug 2005
    Posts
    39
    Quote Originally Posted by misplaced
    not sure what the problem is....

    but i noticed something. you're indian (mid-east) aren't you? it doesn't really matter, but i'm curious as to why mid-eastern people never use the word "it". (they usually say "he" for some reason)
    Nope I'm Dutch :P We (in Holland) always use he. We don't have a word like 'It'.

    Quote Originally Posted by Jaqui
    yes, the new headers are all in the same folder.
    the folder is not in your default include path, so the headers are not found.

    I believe that the mysql++ lib is actually developed with vc++ version 6. ( ms's lack of compatability between versions of software bug / bad coding practice )

    did you set the environment variables the notes mention?
    or run the batch file to set them?
    I ran the special CMD.exe In my Visual C++ start menu folder.

    And I put the new header files in my compiler's include directory
    Last edited by MrLucky; 08-27-2005 at 09:50 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C API for MySQL
    By gvector1 in forum C Programming
    Replies: 10
    Last Post: 03-16-2011, 02:07 AM
  2. MySQL C API Header File Problems
    By WarrenKeyes3 in forum C Programming
    Replies: 3
    Last Post: 03-26-2009, 02:26 PM
  3. mysql API in c
    By vapanchamukhi in forum C Programming
    Replies: 1
    Last Post: 10-03-2008, 03:31 AM
  4. MySQL C API or ODBC?
    By serfurj in forum C Programming
    Replies: 3
    Last Post: 02-01-2005, 07:32 PM
  5. no output with MySQL C API
    By trekker in forum C Programming
    Replies: 1
    Last Post: 05-22-2003, 01:27 PM