Tommy Tang wrote:
I have successfully patched, compiled and installed the mysql++1.7.9 in RedHat
with gcc3.2.2, when I comile the example using the following command: g++
simple1.cc, I get tons of compile errors, what's the problem? I installed
mysql++ with default configurement.
.
HI!
Jae Joo has provided you by fine answer.
Beside that, you should have a bit more complex compile (link) statement.
To compile and link with one directive try:
g++ -I/path/to/the/mysql/and/mysqlpp/includes -o simple1 simple1.cc
-L/path/to/the/mysql/and/mysqlpp/libs -lmyaql -lsqlplus -lz -lm
--
Sincerely,
Meet the MySQL at User Conference ! (April 14-16, 2004)
http://www.mysql.com/uc2004/