Re: STL problems in GCC 4.1.2

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

 



On 2/21/08, Eljay Love-Jensen <eljay@xxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux