List:MySQL++« Previous MessageNext Message »
From:Steven Osborn Date:June 30 2006 8:52pm
Subject:Compling Simple.cpp
View as plain text  
I am new to gcc and it's been some years since I've done any C++ 
programming, so please forgive me, but I'm having trouble compling 
simple.cpp

I am entering:

shell> g++ -I/usr/local/include/mysql++ simple.cpp

and I get:

/usr/bin/ld: Undefined symbols:
connect_to_db(int, char**, mysqlpp::Connection&, char const*)
utf8trans(char const*, char*, int)
mysqlpp::Connection::query()
mysqlpp::Connection::Connection(bool)
mysqlpp::Connection::~Connection()
mysqlpp::Row::Row(char** const&, mysqlpp::ResUse const*, unsigned long*, 
bool)
mysqlpp::Row::~Row()
mysqlpp::Query::error()
mysqlpp::Query::store(mysqlpp::SQLQueryParms&)
mysqlpp::ResUse::~ResUse()
mysqlpp::Row::at(unsigned int) const
typeinfo for mysqlpp::ResUse
VTT for mysqlpp::Query
vtable for mysqlpp::Row
vtable for mysqlpp::Query
_mysql_data_seek
_mysql_fetch_lengths
_mysql_fetch_row
_mysql_num_rows
collect2: ld returned 1 exit status

My system is an Intel iMac/ OSX 10.4(Tiger)


Thanks in advance,
Steven
Thread
Compling Simple.cppSteven Osborn30 Jun
  • Re: Compling Simple.cppWarren Young1 Jul