Hi All, I added #include Widget/Canvas in a header file and I have a bunch of compiler errors in every other header which includes it.
To solve the problem I have to include osgWidget/Canvas again in the second header file. Example: In ClassA.h I have #include osgWidget/Canvas In ClassB.h I use #include "ClassA.h" Compiling ClassB.h I get: 1>x:\3rd_party\osg\OpenSceneGraph-2.8.3\include\osgDB/ReaderWriter(231) : error C2143: syntax error : missing '}' before 'string' 1>x:\3rd_party\osg\OpenSceneGraph-2.8.3\include\osgDB/ReaderWriter(231) : error C2059: syntax error : 'string' 1>x:\3rd_party\osg\OpenSceneGraph-2.8.3\include\osgDB/ReaderWriter(236) : error C2143: syntax error : missing ';' before '}' 1>x:\3rd_party\osg\OpenSceneGraph-2.8.3\include\osgDB/ReaderWriter(236) : error C2238: unexpected token(s) preceding ';' 1>x:\3rd_party\osg\OpenSceneGraph-2.8.3\include\osgDB/ReaderWriter(238) : error C2061: syntax error : identifier 'ReadStatus' ... If I add #include osgWidget/Canvas to ClassB.h I don't have the errors compiling ClassB. Any idea? Regards Gianni ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36570#36570 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

