XL C/C++ V7.0 Linux on POWER:Problem

Kriti Dutta kriti.dutta at oracle.com
Thu Dec 29 01:56:49 EST 2005


 I encountered a compilation problem while building some C++ code that uses
the object space library (on Linux Power with
 the gcc 3.3.3and xlC 7.0 compiler). This library defines its own STL's &
iostream implementation, and it seems that it
 conflicts with the usage of the default standard iostream.The ERROR:

 "/usr/include/g++/backward/iostream.h", line 35.1: 1540-0400 (S) "ostream"
has a conflicting declaration.
 "/project/oracle/dc/src/dce/ol1/olstrm.h", line 83.7: 1540-0424 (I)
 "ostream" is declared on line 83 of
"/project/oracle/dc/src/dce/ol1/olstrm.h".

 "/project/oracle/dc/src/bin/ospace/Linux/ospace/std/iosfwd", line 24.10:
1540-0400 (S)
 "class istream" has a conflicting declaration.
 "/usr/include/g++/backward/iostream.h", line 36.1: 1540-0424 (I) "istream"
is declared on line 36 of
 /usr/include/g++/backward/iostream.h".

 "/project/oracle/dc/src/dce/ol1/ollogm.h", line 78.45: 1540-0063 (S)
 The text "ostrstream" is unexpected.

 "/project/oracle/dc/src/bin/ospace/Linux/ospace/osstd/list.h", line 572.7:
1540-0415 (S)
 "template <class T, class Allocator> class list" is already declared with
default template arguments.

 Are there any flags available to say the compiler that it should not use
the standard IO files.

 N.B: The same code has been compiled with gcc-2.95 on Linux & xlC-6.0 on
AIX without any issues.

 With regards
   Kriti.





More information about the Linuxppc-dev mailing list