g++ on LINUX : in-compability problem

Abramov, Evgenia evgenia.abramov@intel.com
Mon Nov 6 03:52:00 GMT 2000


Hi!

We would like to compile source with STL using  the g++ compiler on LINUX.

We faced the following in-compability problem:
the attached source was successfully compiled with the gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
With any other version of g++ compiler (2.8.1, 2.7.2.3, 2.95, 2.95.2) we
receive compilation errors.
The possible workaround for the compiler versions 2.95 and 2.95.2 is to use
the header files from the version 2.91.66 :
g++ -ansi -|/usr/include/g++-2 check.cpp .

What a version of g++ compiler can we use with STL?

See in attachment:
1. the small example string.tar 
Open with 
tar -xvf  strings.tar
Compile with:
g++ -ansi check.cpp 

2. log file with compilation errors 

Thanks,
	Genia. <<strings.ZIP>>  <<log.ZIP>> 


  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.ZIP
Type: application/zip
Size: 616 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001106/9e7df49f/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strings.ZIP
Type: application/zip
Size: 13658 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001106/9e7df49f/attachment-0001.zip>


More information about the Gcc-bugs mailing list