STL problems in GCC 4.1.2
Tom Browder
tom.browder@gmail.com
Fri Feb 22 09:08:00 GMT 2008
On 2/21/08, Eljay Love-Jensen <eljay@adobe.com> wrote:
> Hi Dave,
>
> > The program you gave was entered verbatim, and it compiles with no errors
> > and runs nicely. :)
>
> That indicates to me that the GCC 4.1.2 Standard C++ Library (including the
> STL) is probably working correctly, and something else is causing things to
> go awry.
>
> One possible culprit is that some header file somewhere (not one of the GCC
> 4.1.2 ones) is introducing a #define identifier that is wreaking havoc on
> later #include directives due to identifier collision. You may be able to
> use g++ -E to assess where that is occurring, if it is indeed occurring.
> [This is my first, best guess.]
...
And don't forget Scott Meyers's admonitions to NEVER use a using
declaration inside a header or in a source file before any #include's.
-Tom
More information about the Gcc-help
mailing list