This is the mail archive of the gcc@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]

pthreads and stl allocation


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





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