On Wed, Nov 10, 2004 at 01:28:36PM +0000, Dovid Kopel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Chris-
>
> I unemerge and remerged there is one instance of the headers. I'm confused.
>
> munky@lappy ~/examples $ g++ -I/usr/include/mysql -I/usr/include/mysql++
> - -o simple simple1.cc
> /tmp/cc0ZhRu5.o(.text+0x3a): In function `main':
> : undefined reference to `connect_sample_db(int, char**,
> mysqlpp::Connection&, char const*)'
This is getting closer, but whoops, I forgot to recommend you add -lmysqlpp
in order to link with the right library.
g++ -I/usr/include/mysql -I/usr/include/mysql++ -o simple simple1.cc -lmysqlpp
- Chris