tr1::array with older (apple) gcc's

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

 



Hi,

We're using tr1::array, but on Apple platforms we're getting an
undefined reference to tr1::array::data.  The default compiler on these
systems is a (modified?) gcc version 4.0.1.

I found bug 23081 [1], which implies that data() wasn't implemented
until gcc 4.0.2 (argh, so close).  Systems we care to support also ship
gcc 4.2.1, but it appears they still ship the 4.0.0 headers with it!  I
get a ridiculous error when using that compiler:

  In file included from /usr/include/c++/4.0.0/bits/stl_algobase.h:64,
                   from /usr/include/c++/4.0.0/vector:66,
                   from Basics/Appendix.h:43,
                   from Basics/Appendix.cpp:37:
  /usr/include/c++/4.0.0/i686-apple-darwin9/bits/c++config.h:79: error: current
  namespace 'std' does not enclose strongly used namespace '__gnu_debug_def'

Note the directories it finds the includes in; this is from an
invocation of "g++-4.2".

We've previously encountered some tr1 const correctness issues on this
platform as well, but I could hack around that with some dirty casting.
Is anyone out there using tr1 on apple platforms?  It seems like we
must be doing something wrong to hit so many problems.

Thanks for any advice,

-tom

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23081

[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