This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
problems with locale.cc
- To: libstdc++@sourceware.cygnus.com
- Subject: problems with locale.cc
- From: "Mark E." <snowball3@usa.net>
- Date: Sun, 11 Apr 1999 17:31:29 -0400
I am unable to compile the latest libstdc++ snapshot with egcs 1.1.2
for DJGPP (*-pc-msdosdjgpp).
The first problem is with this snipped from
locale::_S_normalize_category:
#ifndef _G_NO_CLOCALE_HAS_MESSAGES
case LC_MESSAGES: return messages;
#endif
The macro is not defined in DJGPP's
_G_config.h, but LC_MESSAGES is also not
supported, so the compile stops. I would
suggest using the result of an Autoconf test
for LC_MESSAGES there instead.
After working around the first problem, I ran
into the next. Using '-fstrict-aliasing -fno-
honor-std', I get the failure in locale-inst.cc
listed below:
make.exe[2]: Entering directory `c:/djgpp/gnu/libstdc++-2.90.4/build/src'
c:/djgpp/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -
I. -I../../src -I.. -nostdinc++ -I../.. -I../../stl -I../../libio -fstrict-aliasing -fno-
honor-std -g -fvtable-thunks -D_GNU_SOURCE -fno-implicit-
templates -fimplicit-templates -c ../../src/locale-inst.cc
gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -nostdinc++ -I../.. -I../../stl -
I../../libio -fstrict-aliasing -fno-honor-std -g -fvtable-thunks -
D_GNU_SOURCE -fno-implicit-templates -fimplicit-templates -c
../../src/locale-inst.cc -o locale-inst.o
../../src/locale-inst.cc:189: template-id `insert<>' for `vector<locale::facet
*,allocator<locale::facet *> >::insert(__normal_iterator<locale::facet
**,vector<locale::facet *,allocator<locale::facet *> > >, unsigned int,
locale::facet *const &)' does not match any template declaration
../../src/locale-inst.cc:189: no matching template for `vector<locale::facet
*,allocator<locale::facet *> >::insert(__normal_iterator<locale::facet
**,vector<locale::facet *,allocator<locale::facet *> > >, unsigned int,
locale::facet *const &)' found
make.exe[2]: *** [locale-inst.lo] Error 1
make.exe[2]: Leaving directory `c:/djgpp/gnu/libstdc++-2.90.4/build/src'
Must I use the other flags listed on the libstdc++ web page or is there
something I'm overlooking?
---
Mark Elbrecht, snowball3@usa.net
http://snowball.digitalspace.net/