Ok, i downloaded the mysql++-1.7.8-1.i386.rpm
<ftp://ftp.rpmfind.net/linux/MySQL/mysql++/mysql++-1.7.8-1.i386.rpm> rpm
file from RpmFind.net. I have mysql installed already on my machine, o
ya and im running linux. I have gcc installed, version 2.96, i think
everything installed correctly when i ran the rpm. But i am not sure. I
made a simple program, here it is:
#include <sqlplus.hh>
int main() {
return 0;
}
When i tried to compile it using "g++ mysql.cpp" i got a bunch of errors
saying "mysql.h not found" (errors are printed on bottom of email). So i
tried doing a "locate mysql.h" and it only found the mysql.h file from
my windows partition (i have mysql++ installed on windows...).
I am not sure if its my compiler, or the version of mysql++ i installed.
Another question i have is it says to reset my database using reset-db,
where would i do that? The mysql command line?
If anyone can help me, give me some ideas if my install went wrong, or
if i need to update gcc, or get a different compiler (i dont know any
for linux yet! ) id appreciate it very much!
~Mike
-----ERRORS------
[stigmasix@localhost practice]$ g++ mysql.cpp
In file included from /usr/include/sqlplus.hh:9,
from mysql.cpp:1:
/usr/include/defs:5:19: mysql.h: No such file or directory
In file included from /usr/include/coldata1.hh:8,
from /usr/include/sqlplus.hh:12,
from mysql.cpp:1:
/usr/include/type_info1.hh:10:19: mysql.h: No such file or directory
In file included from /usr/include/vallist1.hh:6,
from /usr/include/row1.hh:11,
from /usr/include/compare1.hh:5,
from /usr/include/sqlplus.hh:13,
from mysql.cpp:1:
/usr/include/manip1.hh:10:19: mysql.h: No such file or directory
In file included from /usr/include/sqlplus.hh:14,
from mysql.cpp:1:
/usr/include/connection1.hh:10:19: mysql.h: No such file or directory
In file included from /usr/include/connection1.hh:20,
from /usr/include/sqlplus.hh:14,
from mysql.cpp:1:
/usr/include/query1.hh:10:19: mysql.h: No such file or directory
In file included from /usr/include/query1.hh:13,
from /usr/include/connection1.hh:20,
from /usr/include/sqlplus.hh:14,
from mysql.cpp:1:
/usr/include/result1.hh:12:19: mysql.h: No such file or directory
In file included from /usr/include/sqlplus.hh:57,
from mysql.cpp:1:
/usr/include/coldata3.hh:10:19: mysql.h: No such file or directory
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php