This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
pthreads and stl allocation
- To: egcs at cygnus dot com
- Subject: pthreads and stl allocation
- From: Jim Cole <jcole at redwood dot dn dot hac dot com>
- Date: Wed, 11 Nov 1998 11:27:55 -0700
- Organization: Hughes Information Technology Systems (HITS)
Hello,
I am trying to put together a build of egcs that will support
thread-safe memory allocation in the STL package. It seems that
regardless of my approach to the build, methods for template classes
that involve __default_alloc_template<true, 0> result in unresolved
references when I try to compile my apps.
It appears that libstdc++ includes versions of the methods using
__default_alloc_template<false, 0>, however not any with the threads
parameter set to true.
I have even tried explicitly instantiating the template classes in my
code. I can run nm -C on the object files and locate the references to
the methods I need, however at link time they are still reported as
unresolved references.
I am working with egcs1.0.3a on a sparc platform. I have configured the
build of egcs with --enable-shared and --enable-threads=pthreads
Any help would be greatly appreciated.
Jim Cole