include problems

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Locked
kadnan
Battalion Quarter Master Havaldaar
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi,Pakistan
Contact:

include problems

Post by kadnan »

salam
i ve just downloaded source of mysql++ api for C and installed it
-I have been trying to run example program which connects to mysql server but when i tried to compile the program,i got series ofincludes error..like


[root@adnan projects]# gcc chkmysql.cpp
In file included from /usr/local/include/sqlplus.hh:9,
from chkmysql.cpp:3:
/usr/local/include/defs:5:19: mysql.h:No such file or directory and so on...

i included files like thaat
#include<iostream>
#include<iomanip>
#include <sqlplus.hh>


sqlplus.hh is collection of all header files

I am using gcc 2.9.x
thanx
kadnan
Battalion Quarter Master Havaldaar
Posts: 208
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi,Pakistan
Contact:

Post by kadnan »

i tried to rum sample program like that
gcc -L /usr/lib/mysql mysql.cpp
and gettin following erros

"undefined reference to MysqlConnection::~MySqlConnection(void)


all header files are in /usr/local/includes and
lib file is in usr/lib/mysql direcotry

-yaar anyone of u help meout to resolve this error:/

p.s you`ll find same post in ur mailboxes too:P
Locked