This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined


ljrittle@gcc.gnu.org wrote:
> 
> Synopsis: hash_map  error message at run time about __default_alloc_template/force_new not defined
> 
> State-Changed-From-To: analyzed->closed
> State-Changed-By: ljrittle
> State-Changed-When: Wed Nov  6 06:17:38 2002
> State-Changed-Why:
>     Not a bug.  Please ensure that you have built and then
>     run against the same library.  I can "reproduce" your
>     PR if I compile and link your example against
>     g++ 3.3 but then attempt to run-time link against the
>     3.2.1 version of libstdc++-v3.  This can happen if, e.g.
>     you installed 3.2.1 in /usr/local but 3.3 somewhere else.
> 
>     If the above doesn't cover your situation, then:
>     Benjamin installed a patch to properly export
>     __default_alloc_template::_S_force_new on 2002-11-04
>     which was before the date of your snapshot.
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8475

That was it, thanks. An earlier libstdc++ was in /usr/lib whereas the
correct one was in /usr/local/lib. I set LD_LIBRARY_PATH to
/usr/local/lib and it works fine now (with the last mainline/branch that
I installed meanwhile).
Maybe 'make install' of gcc could set a default dynamic link library
path to its install. path?
Best regards,
Frederic


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]