This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: templates, wchar_t and libstdc++


> 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


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