include problems

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

include problems

Postby kadnan » Tue Aug 20, 2002 12:58 pm

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
ICQ: 12940796
Location: Karachi,Pakistan

Postby kadnan » Tue Aug 20, 2002 9:51 pm

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


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron