Compiling stl stuff with g++ 3.0.2

Started by
1 comment, last by TheMummy 22 years, 4 months ago
Hi, I have a curious problem! In my company we use gcc 3.0.2, and at home there is still 2.95.... Whenever I want to compile a module using stl vectors or fstream with 3.0.2, I get many unresolved external errors. The compiler seems to know the template, since drops the exact prototype of some ofstream methods and vector methods... At home I can compile it whithout problems: g++ stltest.cpp So I guess I have to set some new command line parameters ??
Advertisement
It would help to see some of the code causing the problem.

Also, make sure than the symbolic link to the C++ library isn''t pointing to the old library (the gcc 2.9x).
if they are using the 3.0.x series at work, they should really consider upgrading at each new release. Currently at 3.0.3. It''s been reported that the series breaks some compatibility with stuff compiled on the 2.x series.

subnet_rx
"There are two types of languages, those that everyone complains about, and those that no one uses."Standardized C++ LibrariesGamecron PC GamingA Christian Blog

This topic is closed to new replies.

Advertisement