This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: templates, wchar_t and libstdc++
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: amimjf at connectfree dot co dot uk
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 28 Mar 2005 13:38:26 -0600
- Subject: Re: templates, wchar_t and libstdc++
- Organization: Red Hat / Chicago
- References: <200503281958.09033.amimjf@connectfree.co.uk>
> 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 ?
You can do a couple things.
1)
--disable-c-mbchar will disable wchar_t support for your version of the compiler and library.
2)
--enable-cxx-flags=-fshort-wchar will build a version of libstdc++ with the options you desire
3) change your compiler config so that -fshort-char is the default for your toolchain. Search google, or ask on gcc-help.
4) compile with -U_GLIBCXX_EXTERN_TEMPLATE
to bypass extern template linkage optimizations.
I recommend #3.
-benjamin