Link error with g++ using STL

M

mcole

I'm trying to compile and link a program using the STL container map, using
g++, running on Solaris 10. The linker gives the following error message:

Undefined first referenced
symbol in file
std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*,
unsigned)teststl.o
std::__default_alloc_template<(bool)1,
(int)0>::allocate(unsigned)teststl.o

Is this due to an errr in the STL class library or the shared library?

mcole
 
L

Lionel B

mcole said:
I'm trying to compile and link a program using the STL container map,
using g++, running on Solaris 10. The linker gives the following
error message:

Undefined first referenced
symbol in file
std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*,
unsigned)teststl.o
std::__default_alloc_template<(bool)1,
(int)0>::allocate(unsigned)teststl.o

Is this due to an errr in the STL class library or the shared
library?

Neither: it's due to an error in your code at line 183 of teststl.cpp
;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top