Hello I'm trying to compile the first example of the mysql++ api by 
myself and I'm getting this output:

/tmp/ccu3Iehs.o: In function `main':
/tmp/ccu3Iehs.o(.text+0x2e): undefined reference to 
`MysqlConnection::MysqlConnection(char const *, char const *, char 
const *, char const *, bool)'
/tmp/ccu3Iehs.o(.text+0x39e): undefined reference to 
`operator<<(ostream &, mysql_ColData<const_string> const &)'
/tmp/ccu3Iehs.o(.text+0x3b4): undefined reference to 
`operator<<(ostream &, mysql_ColData<const_string> const &)'
/tmp/ccu3Iehs.o(.text+0x3ca): undefined reference to 
`operator<<(ostream &, mysql_ColData<const_string> const &)'
/tmp/ccu3Iehs.o(.text+0x3e0): undefined reference to 
`operator<<(ostream &, mysql_ColData<const_string> const &)'
/tmp/ccu3Iehs.o(.text+0x3eb): undefined reference to 
`operator<<(ostream &, mysql_ColData<const_string> const &)'
/tmp/ccu3Iehs.o(.text+0x509): undefined reference to 
`MysqlConnection::~MysqlConnection(void)'
/tmp/ccu3Iehs.o(.text+0x69d): undefined reference to 
`MysqlConnection::~MysqlConnection(void)'
/tmp/ccu3Iehs.o: In function `MysqlRes::~MysqlRes(void)':
/tmp/ccu3Iehs.o(.gnu.linkonce.t._._8MysqlRes+0x1b): undefined reference 
to `MysqlResUse::~MysqlResUse(void)'
/tmp/ccu3Iehs.o: In function `MysqlQuery::preview(void)':
/tmp/ccu3Iehs.o(.MysqlQuery::gnu.linkonce.t.preview(void)+0x1b): 
undefined reference to `SQLQuery::str(SQLQueryParms const &) const'
/tmp/ccu3Iehs.o: In function `MysqlRes::num_rows(void) const':
/tmp/ccu3Iehs.o(.MysqlRes::gnu.linkonce.t.num_rows(void) const+0x14): 
undefined reference to `mysql_num_rows'
/tmp/ccu3Iehs.o: In function `MysqlQuery::store(SQLQueryParms &, 
query_reset)':
/tmp/ccu3Iehs.o(.MysqlQuery::gnu.linkonce.t.store(SQLQueryParms &, 
query_reset) +0x3b): undefined reference to 
`SQLQuery::str(SQLQueryParms const &, query_reset)'
/tmp/ccu3Iehs.o: In function `MysqlResUse::num_fields(void) const':
/tmp/ccu3Iehs.o(.MysqlResUse::gnu.linkonce.t.num_fields(void) 
const+0x12): undefined reference to `mysql_num_fields'
/tmp/ccu3Iehs.o: In function `MysqlRes::fetch_row(void) const':
/tmp/ccu3Iehs.o(.MysqlRes::gnu.linkonce.t.fetch_row(void) const+0xd8): 
undefined reference to `mysql_fetch_row'
/tmp/ccu3Iehs.o(.MysqlRes::gnu.linkonce.t.fetch_row(void) const+0xec): 
undefined reference to `mysql_fetch_lengths'
/tmp/ccu3Iehs.o: In function `MysqlRes::data_seek(unsigned int) const':
/tmp/ccu3Iehs.o(.MysqlRes::gnu.linkonce.t.data_seek(unsigned int) 
const+0x1c): undefined reference to `mysql_data_seek'
/tmp/ccu3Iehs.o: In function `MysqlConnection::store(basic_string<char, 
string_char_traits<char>, __default_alloc_template<true, 0> > const &)':
/tmp/ccu3Iehs.o(.MysqlConnection::gnu.linkonce.t.store(basic_string<char, 
string_char_traits<char>, __default_alloc_template<true, 0> > const 
&)+0x1d): undefined reference to 
`MysqlConnection::store(basic_string<char, string_char_traits<char>, 
__default_alloc_template<true, 0> > const &, bool)'
/tmp/ccu3Iehs.o: In function `FieldTypes::FieldTypes(MysqlResUse const 
*)':
/tmp/ccu3Iehs.o(.FieldTypes::gnu.linkonce.t.(MysqlResUse const 
*)+0x4d): undefined reference to `FieldTypes::init(MysqlResUse const *)'
collect2: ld returned 1 exit status

I'm using g++ simple.cpp -o simple -I /usr/local/mysql/include/mysql/

and when I try to run the examples I got:

$./simple1
lt-simple1: error while loading shared libraries: cannot open shared 
object file: cannot load shared object file: No such file or directory

then when I try to see the lib that are missing:

$ldd simple1
         not a dynamic executable

any ideas or suggestions or the email of someone how I can't talk to, 
will be really appreciated...

Is there any howto about how to compile programs written using this 
class?

Thanx for your time.

-- 
--Paco

"Open Source, Open Mind"
"Slackware, sending kiddies to /dev/null, since 1993"



---------------------------------------------------------------------
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

Reply via email to