templates, wchar_t and libstdc++
Benjamin Kosnik
bkoz@redhat.com
Mon Mar 28 19:38:00 GMT 2005
> 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
More information about the Libstdc++
mailing list