By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

Link error with g++ using STL

P: n/a
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

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
mcole wrote:
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
;-)

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.