> -----Original Message----- > From: Martin Sebor [mailto:[EMAIL PROTECTED] On Behalf Of Martin Sebor > Sent: Wednesday, April 23, 2008 11:03 AM > To: [email protected] > Subject: errors compiling 22.locale.synopsis.cpp > > The new test fails to compile with most compilers, including IBM > XLC++, Sun C++, MSVC, and HP aCC. It fails to link with Intel C++. > Here's the aCC error: > > aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include > -I$(TOPDIR)/tests/include -AA +O2 +w +W392,655,684,818,819,849 > +W2193,2236,2261,2340,2401,2487 +W4227,4229,4231,4235,4237,4249 > +W4255,4272,4284,4285,4286,4296,4297 +W3348 > $(TOPDIR)/tests/localization/22.locale.synopsis.cpp > "$(TOPDIR)/tests/localization/22.locale.synopsis.cpp", line > 828: error > #2080: a storage class may not be specified here > static void > ^ > > 1 error detected in the compilation of > "$(TOPDIR)/tests/localization/22.locale.synopsis.cpp".
There's actually two errors which I've fixed. But these link errors are a bit puzzling: CC 22.locale.synopsis.o -o 22.locale.synopsis -L/build/stdcxx/rwtest -lrwtest -library=%none -mt -m64 -L/build/stdcxx/lib -R/build/stdcxx/lib:/build/stdcxx/rwtest -lstd -lm Undefined first referenced symbol in file long std::collate<int>::do_hash(const int*,const int*)const 22.locale.synopsis.o std::basic_string<int>std::collate<int>::do_transform(const int*,const int*)const 22.locale.synopsis.o int std::collate<int>::do_compare(const int*,const int*,const int*,const int*)const 22.locale.synopsis.o ld: fatal: Symbol referencing errors. No output written to 22.locale.synopsis gmake: *** [22.locale.synopsis] Error 1 Seems the linker has a problem with the UDC (i.e. int) specializations. Any ideas? Brad.
