help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ 3.4.3: backwards compatibility


From: Ulrich Windl
Subject: g++ 3.4.3: backwards compatibility
Date: 02 Nov 2005 16:00:14 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Hi,

when trying to compile an older application that compiled for around g++ 2.8,
I see several errors:

`cerr' undeclared (formerly from <iostream.h> I think)

`endl' undeclared (ditto)

`ends' undeclared (ditto)

My 'min' and 'max' macros break some standard include files using
`std__min()', etc.

`ostrstream' undeclared (formerly in <strstream.h> I think)

`struct std::basic_ostringstream<...>' has no member `c_str'

`--len' does no longer work for  `std:streampos len' (no match for operator--,
ambiguous overload for operator==)

`fstream' undeclared (also <iostream.h> once I think)

`ifstream' undeclared

`std::basic_string' cannot be converted to `const char *' when used as actual
parameter for a function call

The macro definition
#define foo(n) set_##n##(const char *s)
does no longer work. The error is ` pasting "set_SAMPLE" and "(" does not give
a valid preprocessor token


Is there some "porting guide" for those who did not actively follow recent C++
development?

Regards,
Ulrich



reply via email to

[Prev in Thread] Current Thread [Next in Thread]