Re: [orbitcpp-list] build issues
Status: Beta
Brought to you by:
philipd
From: Brian C. <bc...@th...> - 2002-02-25 22:43:15
|
On Tue, Feb 26, 2002 at 09:12:49AM +1100, Sam Couter wrote: > > o The template partial specialization in orbitcpp_sequence.hh also seems to > > only work with recent gcc, though older versions reportedly support partial > > specialization. I'm not sure what the problem is. > > I've been building with GCC 2.95 and 3.0, which both work fine. GCC has > historically had many many problems with templates. > > However, templates are a C++ black art that I don't fully understand, > and I don't even know what partial specialization is, so I can't help > with this either. Are you unable to use a recent GCC for some reason? The project I'm working on supports RedHat 6.x, which uses egcs 1.1.2. It's supposed to support partial specialization, but the orbitcpp build fails, like so: c++ -DORBITCPP_MAJOR_VERSION=0 -DORBITCPP_MINOR_VERSION=30 -DORBITCPP_MICRO_VERSION=3 -DPACKAGE=\"orbitcpp\" -DVERSION=\"0.30.3\" -DSTDC_HEADERS=1 -I. -I. -I.. -I.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -O2 -march=i386 -mcpu=i686 -Wp,-MD,.deps/orbitcpp_poa.pp -c orbitcpp_poa.cc -fPIC -DPIC -o .libs/orbitcpp_poa.lo In file included from orbitcpp_poa.cc:30: ../orb/orbitcpp_poa.hh:48: template-id `operator new<>' for `::_orbitcpp::::_orbitcpp::UnboundedSequenceTmpl<unsigned char,PortableServer_sequence_octet>::operator new<>(size_t)' does not match any template declaration ../orb/orbitcpp_poa.hh:48: confused by earlier errors, bailing out make: *** [orbitcpp_poa.lo] Error 1 Debugging template problems is like divining stock prices from cloud formations, in my experience. b.c. |