templates, wchar_t and libstdc++
Matthew J Fletcher
amimjf@connectfree.co.uk
Mon Mar 28 20:08:00 GMT 2005
Hi,
> > 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.
>
i did consider these, but we also need to use 4byte wchar_t when we link
against other linux libraries for the linux build.
> 4) compile with -U_GLIBCXX_EXTERN_TEMPLATE
> to bypass extern template linkage optimizations.
thats just what i need.
i noticed that searching for 'U_GLIBCXX_EXTERN_TEMPLATE', on google only
returns one hit,.. that must be a record !
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
---
Football builds self-discipline. What else would induce a spectator to
sit out in the open in subfreezing weather?
More information about the Libstdc++
mailing list