2 messages in com.mysql.lists.plusplusHeader file trouble
FromSent OnAttachments
John Lowry12 Jun 2003 03:50 
Sinisa Milivojevic13 Jun 2003 04:51 
Subject:Header file trouble
From:John Lowry (ja@eskimo.com)
Date:06/12/2003 03:50:09 AM
List:com.mysql.lists.plusplus

Hi,

I'm using the binary Linux distribution, and have successfully connected to Mysql with the C api.

I installed the C++ package and applied the gcc 3.2 patch. I got an error on the connection.cc patch, but the type_info1.hh seems to have gone successfully. I don't believe my (current) problem is with the connection.cc file.

On compilation I get an error with the file exceptions.hh, regardless of whether -DUSE_STANDARD_EXCEPTION is defined or not. Obviously something is not set up correctly. The makefile as supplied also fails, so that's why I ran directly. I'm using Suse 8.0.

The first couple of lines of compiler output are below.

Thanks for any help anyone can provide!

--John

Script started on Thu Jun 12 11:00:43 2003 Updating path for mysql [/usr/share/doc/packages/mysql++/examples/jal] g++ -DUSE_STANDARD_EXCEPTION -I
/usr/local/mysql/include -I /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint simple1.cc -L /home/jal/mysql-4.1.0-alpha/libmysql/.libs -lmysqlclient -lz In file included from /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/coldata1.hh:7, from /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/sqlplus.hh:12, from simple1.cc:3: /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/exceptions.hh:14: parse error before `{' token /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/exceptions.hh:17: syntax error before `;' token /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/exceptions.hh:18: virtual outside class declaration /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/exceptions.hh:18: non-member function `const char* what()' cannot have `const' method qualifier /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/exceptions.hh: In function `const char* what()': /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/exceptions.hh:18: `error' undeclared (first use this function) /usr/src/packages/SOURCES/mysql++-1.7.9/sqlplusint/exceptions.hh:18: (Each undeclared identifier is reported only once for each function it appears