This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Is it a bug?
- From: "Lev Assinovsky" <LAssinovsky at algorithm dot aelita dot com>
- To: <gcc-bugs at gcc dot gnu dot org>
- Date: Sat, 9 Aug 2003 14:31:55 +0400
- Subject: Is it a bug?
Hi all!
I tried to build the following program in HP-UX 11.00 using gcc 3.2.3:
=============== cut here ====================
#include <string>
template<class CChar>
struct ACharTraits:
public std::char_traits<CChar>
{
};
typedef char TCHAR;
std::basic_string<TCHAR, ACharTraits<TCHAR>, std::allocator<TCHAR> > s("aaaa");
int main()
{
}
================= cut here ==================
AND GOT:
-bash-2.05b$ g++ -o tstr tstr.cpp
/usr/ccs/bin/ld: Unsatisfied symbols:
std::basic_string<char, ACharTraits<char>, std::allocator<char> >::_Rep::_S_terminal(first referenced in /var/tmp//cctBl474.o) (data)
std::basic_string<char, ACharTraits<char>, std::allocator<char> >::_Rep::_S_max_size(first referenced in /var/tmp//cctBl474.o) (data)
collect2: ld returned 1 exit status
IS IT A BUG?
Sincerely,
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909