[ale] gcc-3.4.2 backwards-incompatibility?

Mills, John M. Mills.J at ems-t.com
Thu Apr 28 11:40:10 EDT 2005


ALErs -

I'm trying to build (in Fedora-C3) an app with gcc-3.4.2 that used to be
built (in RH-7.3) with gcc-2.95.x, and I'm having trouble with (I think)
some anachronisms.

The module uses:
 #include <fstream>

The build then fails on the declaration:

  fstream f(PREPROG_FNAME, ios::out);

with the message:
 "preprogrammed.cc:201: error: `fstream' undeclared (first use this
function)"

If instead I use:
 #include <fstream.h>

the build fails to find 'ios'.

I don't see the "backwards" compatibility warning in the build trace. How
should this migration be handled? Do I just need to add '-I...' paths, and
if so, what should I use?

TIA.
 - Mills



More information about the Ale mailing list