PDA

View Full Version : [all variants] problem with mysq.h and mysql_com.h



kotreshkumards
March 10th, 2009, 07:26 PM
My project (PC based oscilloscope ) needs a C file (pcbo.c) to read data from parallel port
and enter these values in a MYSQL database.
Fedora 7 is used ( mysql preinstalled nd configured)
pcbo.c (source ) file has
#include <mysql.h>

where to find this file?

and how to add this file?

Even I extracted mysql.5.0.67.tar.gz and found mysql.h file and other header files (mysql_com.h ,mysql_version.h etc..) required.
I copied these files to /usr/include folder (logged in as root user )

Wen i compile the pcbo.c in terminal
i'm getting these errors..

Error in mysql.h:307 Token '@' is not valid in preprocessor statements
Error in mysql.h:315 Token '@' is not valid in preprocessor statements

The lines 307 points to
MYSQL_VERSION_ID<=50000 (in mysql.h)
MYSQL_VERSION_ID<=50100 (in mysql_com.h)

please help me to solve this.. our project has struct at this point..:(
Edit/Delete Message

Neo_The_User
March 10th, 2009, 08:45 PM
you need the development tools and or development libs for the mysql stuff if you're compiling from source. ...as always.

kotreshkumards
March 11th, 2009, 09:35 AM
you need the development tools and or development libs for the mysql stuff if you're compiling from source. ...as always.
which development tools can help us for this?
sorry i'm new to world of linux..