[osg-users] OSG 2.2 MinGW Compilation Error

Michele Bosi michele.bosi at gmail.com
Mon Oct 8 10:24:13 PDT 2007


Hello to all,
I just downloaded OSG 2.2 zip file and started compiling it with MinGW
under regular WinXP 32 bits. I get the following error:

[ 60%] Building CXX object src/osgIntrospection/CMakeFiles/osgIntrospection.dir/
DefaultReflectors.obj
In file included from C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/variant_ca
st:19,
                 from C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/InstanceCr
eator:19,
                 from C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/Reflector:
24,
                 from C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/Reflection
Macros:19,
                 from C:\OpenSceneGraph 2.2\OpenSceneGraph\src\osgIntrospection\
DefaultReflectors.cpp:15:
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:66: error: ISO C++
forbids declaration of `wostream' with no type
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:66: error: invalid
use of `::'
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:66: error: `wostrea
m' declared as a `virtual' field
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:66: error: expected
 `;' before '&' token
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:69: error: expected
 `;' before "virtual"
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:69: error: ISO C++
forbids declaration of `wistream' with no type
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:69: error: invalid
use of `::'
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:69: error: `wistrea
m' declared as a `virtual' field
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:69: error: expected
 `;' before '&' token
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:72: error: expected
 `;' before "virtual"
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:121: error: ISO C++
 forbids declaration of `wostream' with no type
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:121: error: invalid
 use of `::'
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:121: error: `wostre
am' declared as a `virtual' field
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:121: error: expecte
d `;' before '&' token
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:126: error: expecte
d `;' before "virtual"
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:126: error: ISO C++
 forbids declaration of `wistream' with no type
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:126: error: invalid
 use of `::'
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:126: error: `wistre
am' declared as a `virtual' field
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:126: error: expecte
d `;' before '&' token
C:/OPENSC~1.2/OPENSC~1/include/osgIntrospection/ReaderWriter:132: error: expecte
d `;' before "virtual"
mingw32-make[2]: *** [src/osgIntrospection/CMakeFiles/osgIntrospection.dir/Defau
ltReflectors.obj] Error 1
mingw32-make[1]: *** [src/osgIntrospection/CMakeFiles/osgIntrospection.dir/all]
Error 2
mingw32-make: *** [all] Error 2

Does anyone have any clue to give me?
It seems that it has to do with the introspection. Is there a way to disable it?
Note that OSG 2.0 compiled correctly under the very same system, in
fact am still using it.

Regards,
Michele



More information about the osg-users mailing list