public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* tr1::array with older (apple) gcc's
@ 2010-03-03 21:19 tom fogal
  0 siblings, 0 replies; only message in thread
From: tom fogal @ 2010-03-03 21:19 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-03 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-03 21:19 tr1::array with older (apple) gcc's tom fogal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).