Okay i manage to build mysql++ after building gcc 2.95.3.Now i have problem
in making c++ programs to run with mysql++.
I try to compile the following code
#include <sqlplus.hh>
#include <iomanip.h>
#include <iostream.h>
int main()
{
connection conn("mysql");
Query query = conn.query();
query<<"select * from test";
Result res = query.store();
cout<<"result size : "<<res.size();
return 1;
}
I try first by using the following :
g++ main.cc
by i get a whole list errors that look something like :
/tmp/cc9gbBwd.o (FieldType::gnu.linkonec.......:undefine reference to
'FileTypes::int().....
collect2: ld returned 1 exit status
then i try to do this :
g++ main.cc -lsqlplus
this manage to compile the code but when i try to run the program with
./a.out,i get the following error:
./a.out : error in loading shared libraries : libsqlplus.so.1 : cannot open
shared object file : No such file or directory.
the libsqlplus.so.1 file is found in the /usr/local/lib/ directory.
I build mysql++ using default options. Please help, thanks in advance.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
---------------------------------------------------------------------
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