3 messages in com.mysql.lists.plusplusRe: MySql++ and Suse8.2 Gcc 3.3 RPM
FromSent OnAttachments
Filip Lyncker01 Sep 2003 11:11 
Timothy Waters01 Sep 2003 12:01 
Sinisa Milivojevic02 Sep 2003 03:10 
Subject:Re: MySql++ and Suse8.2 Gcc 3.3 RPM
From:Sinisa Milivojevic (sin@beotel.yu)
Date:09/02/2003 03:10:40 AM
List:com.mysql.lists.plusplus

On Mon, 1 Sep 2003 20:12:10 +0200 "Filip Lyncker" <lync@clubtracks.de> wrote:

Hi List,

I installed the Rpm bianry Package for suse. Im using Suse 8.2. Im not able to compile anything. I tried the sample1.cc and my "hello World" where i yust included the <sqlplus.hh"> the compiler (3.3.200) doesnt find the sqlplus.hh ( unknown file or dir) when i give the dir with the -I option it doesent find the mysql.h. If i also give the location with the -I option other errors occur :

gcc -I/usr/include/mysql/ -I/usr/include/sqlplus simple1.cc In file included from /usr/include/g++/backward/iterator.h:30, from /usr/include/sqlplus/resiter1.hh:6, from /usr/include/sqlplus/row1.hh:10, from /usr/include/sqlplus/compare1.hh:6, from /usr/include/sqlplus/sqlplus.hh:13, from simple1.cc:3: /usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. In file included from /usr/include/sqlplus/manip1.hh:14, from /usr/include/sqlplus/vallist1.hh:6, from /usr/include/sqlplus/row1.hh:11, from /usr/include/sqlplus/compare1.hh:6, from /usr/include/sqlplus/sqlplus.hh:13, from simple1.cc:3: /usr/include/sqlplus/sql_query1.hh:4:23: strstream.h: No such file or directory In file included from /usr/include/sqlplus/manip1.hh:14, from /usr/include/sqlplus/vallist1.hh:6, from /usr/include/sqlplus/row1.hh:11, from /usr/include/sqlplus/compare1.hh:6, from /usr/include/sqlplus/sqlplus.hh:13, from simple1.cc:3: /usr/include/sqlplus/sql_query1.hh:110: error: parse error before `{' token

The Problem seems to be the strstream.h. But whats going on here? Why are there no paths known any more? What else do i need to give to compile ?

Thanks for help !!

cheers

Filip

This is usually problem when old and new g++ include files are found on the
system.

You should compile with -E to see what is going on.

Sincerely,