From: Joacim P. <no...@tu...> - 2006-06-16 12:30:24
|
>From talking to others on IRC I understand the cvs version of simgear builds fine with gcc 4, but with gcc 3.3.6 I get these compile errors added below. Is there a simple workaround for this? In file included from mat.cxx:44: ../../../simgear/structure/SGSharedPtr.hxx: In member function `void SGSharedPtr<T>::get(const T*) const [with T = SGMaterialGlyph]': ../../../simgear/structure/SGSharedPtr.hxx:51: instantiated from `SGSharedPtr<T>::SGSharedPtr(T*) [with T = SGMaterialGlyph]' mat.hxx:212: instantiated from here ../../../simgear/structure/SGSharedPtr.hxx:91: error: no matching function for call to `SGReferenced::get(const SGMaterialGlyph*&)' ../../../simgear/structure/SGReferenced.hxx:41: error: candidates are: static unsigned int SGReferenced::get(const SGReferenced*) ../../../simgear/structure/SGSharedPtr.hxx: In member function `void SGSharedPtr<T>::put() [with T = SGMaterialGlyph]': ../../../simgear/structure/SGSharedPtr.hxx:58: instantiated from `SGSharedPtr<T>::~SGSharedPtr() [with T = SGMaterialGlyph]' mat.hxx:212: instantiated from here ../../../simgear/structure/SGSharedPtr.hxx:93: error: no matching function for call to `SGReferenced::put(SGMaterialGlyph*&)' ../../../simgear/structure/SGReferenced.hxx:43: error: candidates are: static unsigned int SGReferenced::put(const SGReferenced*) ../../../simgear/structure/SGSharedPtr.hxx:93: warning: possible problem detected in invocation of delete operator: ../../../simgear/structure/SGSharedPtr.hxx:93: warning: invalid use of undefined type `struct SGMaterialGlyph' mat.hxx:55: warning: forward declaration of `struct SGMaterialGlyph' ../../../simgear/structure/SGSharedPtr.hxx:93: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. make[4]: *** [mat.o] Error 1 |