This is the mail archive of the gcc-help@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]
Other format: [Raw text]

RE: Using std::basic_string<int> results in link error


I had the same thing -- a kind gentleman named Mathieu Fluhr
<mfluhr@nero.com> 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@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Jean-Francois Im
Sent: 19 October 2004 21:41
To: gcc-help@gcc.gnu.org
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?


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