5 messages in com.mysql.lists.plusplusRe: how to compile in RedHat9 with gc...
FromSent OnAttachments
nelson evangelista19 Mar 2004 10:46 
Sinisa Milivojevic20 Mar 2004 04:08 
Tommy Tang23 Mar 2004 04:33 
Jae Joo23 Mar 2004 06:15 
Sinisa Milivojevic23 Mar 2004 06:28 
Subject:Re: how to compile in RedHat9 with gcc 3.2.2
From:Sinisa Milivojevic (sin@mysql.com)
Date:03/23/2004 06:28:52 AM
List:com.mysql.lists.plusplus

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/