I had the same thing -- a kind gentleman named Mathieu Fluhr <mfluhr@xxxxxxxx> sent me a modified version of char_traits.h, which I simply dropped into gcc-home-directory/include/c++/3.x/bits/ and replaced the old one with his modified one. Fixed all my problems. I don't know if I'm allowed to give the file to you but I'm sure if you ask him he will send it to you. They say it's been fixed in libstdc++ 6 which comes with gcc 3.4, but I haven't verified this. I have to stick with gcc 3.2.3 for now. See also: http://lists.debian.org/debian-gcc/2004/08/msg00271.html Lourens... -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Jean-Francois Im Sent: 19 October 2004 21:41 To: gcc-help@xxxxxxxxxxx Subject: Using std::basic_string<int> results in link error The cause of this problem seems to be rooted in the fact that templates are in libstdc++ instead of being compiled when using the STL. Is there a parameter that can be passed to g++ to tell it to compile the STL templates on the fly instead of using the precompiled ones?