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
include problems
-
- Battalion Quarter Master Havaldaar
- Posts: 208
- Joined: Wed Aug 07, 2002 8:00 pm
- Location: Karachi,Pakistan
- Contact:
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
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