>>>>> "Mike" == Mike Cardosa <mike@stripped> writes:
>> You have forgotten to link in MySQL++ library.
Mike> Hi there!
Mike> It appears that from the installation, all of the include files are in
Mike> /usr/include. Where else do I have to link? Take a look at the command line
Mike> I used:
Mike> bash$ g++ test2.cpp -o test.cgi -I/usr/include/mysql -I/usr/include
Mike> The only reason that I linked /usr/include/mysql was that the mysql.h file
Mike> was in there; if I didn't link there, it would give me an error message
Mike> saying that mysql.h couldn't be found. Plus, the -I/usr/include had no
Mike> effect on the error output. It's already a directory that is searched by the
Mike> So where else should I include?
You have not told the compiler which libraries to use.
You have to at least add:
-lsqlplus -lmysqlclient -lz
to the link line