templates, wchar_t and libstdc++
Matthew J Fletcher
amimjf@connectfree.co.uk
Mon Mar 28 18:58:00 GMT 2005
Hi,
I have recently upgraded from a 2.95 based toolchain to a 3.4.3 one for a
application that uses lots of templates on linux and an embedded target.
I noticed that we now need to link against libstdc++ when using templates
(basic_string) in this case, otherwise the allocator_xx stuff is undefined.
I take it this is an 3.4.x optimisation, having some parts of the stl
pre-compiled, so to speak in libstdc++.
Unfortunatly, i use -fshort-wchar to use a 2byte version of basic_string,
and this is now not possible because, the basic_string constructor is within
libstdc++, which on linux means that wchar_t is 4bytes.
is there a flag (or configure option) to disable the use of the pre-compiled
libstdc++ bits of the stl, and use templates in the old fashioned (just
include files) way ?
it should be noticed that this seems to be (linux) target dependant as a
i386-unknown-elf and arm-unknown-elf toolchain work fine.
regards
---
Matthew J Fletcher amimjf (at ) connectfree.co.uk
www.amimjf.org mfletcher (at) serck-controls.co.uk
---
kickass.amimjf.org 2.6.11-2mdk #1 Thu Mar 10 16:32:09 CET 2005
---
The universe seems neither benign nor hostile, merely indifferent.
-- Sagan
More information about the Libstdc++
mailing list