From: Andrew G. <ag...@em...> - 2004-05-18 18:15:39
|
On May 18, 2004, at 13:04, daniel civello wrote: > Hey all, so I'm very eager to jump into ZooLib, but I can't get the > samples > compiled. Specifically, it's dying on the linker...the compiler gives > no > ld: Undefined symbols: > std::char_traits<unsigned short>::eq(unsigned short const&, unsigned > short > const&) > std::char_traits<unsigned short>::copy(unsigned short*, unsigned short > const*, > unsigned long) > std::char_traits<unsigned short>::find(unsigned short const*, unsigned > long, > unsigned short const&) > std::char_traits<unsigned short>::move(unsigned short*, unsigned short > const*, > unsigned long) > std::char_traits<unsigned short>::assign(unsigned short*, unsigned > long, > unsigned short) > std::char_traits<unsigned short>::assign(unsigned short&, unsigned > short > const&) > std::char_traits<unsigned short>::length(unsigned short const*) > std::char_traits<unsigned short>::compare(unsigned short const*, > unsigned short > const*, unsigned long) > make: *** [ButtonMessage-debug] Error 1 > > ..... > > I'm running 10.3.3. Any ideas? Yes. Do a CVS checkout of the current source tree. The std C++ lib on MacOS X does not include definitions of specializations of char_traits for anything other than char, and there are places in ZooLib where we're using 16 and 32 bit code units (depending on your compiler settings one or other may be a wchar_t). I think that the necessary code might even be in the 0.9 release, but just isn't switched on when building gcc/mach for macos X. A+ -- Andrew Green mailto:ag...@em... Electric Magic Co. vox: +1 (831) 621 1822 |