Hi Martin,
I've reviewed the code and it looks correct, and the info in your
email doesn't really provide enough to divine what the compiler is
actually complaining about. I could work out what your exact change
was, my best guess is that you changed:
virtual ~Record() {}
To:
virtual ~Record();
Which would still be valid code is you also moved the implementation
of the destructor into Record.cpp.
I don't know if this was the change you made, or why this might fix a
problem in the compile, could you provide more info?
Robert.
On Mon, Jun 9, 2008 at 3:01 PM, Martin Spott <[EMAIL PROTECTED]> wrote:
> After a while I finally took the time to replace my old 2.3.7
> installation on IRIX with 2.4.0. Apparently the MIPSPro compiler
> dislikes one little piece in the following changeset:
>
> http://www.openscenegraph.org/projects/osg/changeset/7756
>
>
> ------------------------------- snip
> ------------------------------------------
> [ 84%] Building CXX object
> src/osgPlugins/OpenFlight/CMakeFiles/osgdb_openflight.dir/AncillaryRecords.o
> /usr/bin/CC -LANG:libc_in_namespace_std=OFF -Dosgdb_openflight_EXPORTS
> -O2 -DNDEBUG -I/usr/local/src/OpenSceneGraph-2.4.0/include
> -o
> src/osgPlugins/OpenFlight/CMakeFiles/osgdb_openflight.dir/AncillaryRecords.o
> -c
> /usr/local/src/OpenSceneGraph-2.4.0/src/osgPlugins/OpenFlight/AncillaryRecords.cpp
> [... tons of WARNINGs ...]
> cc-1367 CC: ERROR File =
> /usr/local/src/OpenSceneGraph-2.4.0/include/osg/ref_ptr, Line = 30
> A pointer to an incomplete class type is not allowed.
>
> ~ref_ptr() { if (_ptr) _ptr->unref(); _ptr = 0; }
> ^
> detected during instantiation of
> "osg::ref_ptr<flt::PrimaryRecord>::~ref_ptr()" at line 64
> of
>
> "/usr/local/src/OpenSceneGraph-2.4.0/src/osgPlugins/OpenFlight/Record.h"
>
> 1 error detected in the compilation of
> "/usr/local/src/OpenSceneGraph-2.4.0/src/osgPlugins/OpenFlight/AncillaryRecords.cpp".
> ------------------------------- snip
> ------------------------------------------
>
>
> Reverting the change in 'src/osgPlugins/OpenFlight/Record.h' at line 64 to
> read:
>
> virtual ~Record();
>
> .... makes the compiler happy - yet I don't have the slightest clue if
> this has any influence on proper functionality .... :-)
>
> Martin.
> --
> Unix _IS_ user friendly - it's just selective about who its friends are !
> --------------------------------------------------------------------------
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org