Paul Deppe writes: > > With the latest chnages to SSG, the following error occurs when compiling > src/Objects/obj.cxx from FlightGear (Cygwin/Win2k/gcc3.2): > > if > ++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/usr/l > ocal/include -O2 -MT obj.o -MD -MP -MF ".deps/obj.Tpo" \ > -c -o obj.o `test -f 'obj.cxx' || echo './'`obj.cxx; \ > then mv ".deps/obj.Tpo" ".deps/obj.Po"; \ > else rm -f ".deps/obj.Tpo"; exit 1; \ > fi > obj.cxx: In member function `void LeafUserData::setup_triangle(int)': > obj.cxx:625: cannot allocate an object of type `DummyBSphereEntity' > obj.cxx:625: because the following virtual functions are abstract: > /usr/include/plib/ssg.h:1175: virtual void ssgEntity::getStats(int*, int*, > int*, int*) > obj.cxx: In function `void gen_random_surface_objects(ssgLeaf*, ssgBranch*, > Point3D*, const std::string&)': > obj.cxx:764: cannot allocate an object of type `DummyBSphereEntity' > obj.cxx:764: since type `DummyBSphereEntity' has abstract virtual > functions > make[2]: *** [obj.o] Error 1 > > obj.cxx hasn't changed since 11/25/02 so this seems to be PLIB-related.
The following change allows FlightGear to compile with the PLIB CVS Index: obj.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Objects/obj.cxx,v retrieving revision 1.12 diff -r1.12 obj.cxx 520a521 > virtual void getStats ( int *num_branches, int *num_leaves, int *num_tris, int >*num_verts ); 522a524,530 > void DummyBSphereEntity::getStats ( int *num_branches, int *num_leaves, int >*num_tris, int *num_verts ) > { > *num_branches = 0 ; > *num_leaves = 1 ; /* this! */ > *num_tris = 0 ; > *num_verts = 0 ; > } _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel