help-gplusplus
[Top][All Lists]
Advanced

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

Re: stl on the Mac broken ???


From: Paul Pluzhnikov
Subject: Re: stl on the Mac broken ???
Date: Fri, 07 Oct 2005 19:16:33 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

shaheenz@gmail.com writes:

> any clues why???

My money is on you linking against the wrong (2.x) version of
libstdc++ ...

I do not know enough about OSX libraries to give you more hints,
but you can see which symbols you need:

  g++ -c main.cpp
  nm main.o | grep _default_alloc_template

which libstdc++ library is being used:

  g++ main.o -Wl,-v

and what symbols it defines:

  nm /path/to/libstdc++.{so,a} | grep _default_alloc_template

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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