I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Programming » C/C++ »

Trying to make a program with MySql Library

will\′s Photo
28 Jan 08, 10:08AM
Trying to make a program with MySql Library
Don't know if this answers your problem: http://forums.mysql.com/read.php?45,102840,104450#msg-104450

i.e. For the compile error when including <mysql.h>, it seems that you haven't set the include path in Project->Project Options->Directories->Include Directories. In "Include Directories", add the directory where packman installed the mysql headers (on my system is is c:\Dev-Cpp\include\mysql).

To link with the mysql library, you'll need to add -lmysql to the linker parameters in Project->Project Options->Parameters.
Currently you need to be logged in to leave a message.