Great, SVN compiles fine now. Alberto
El Lunes 01 Septiembre 2008ES 11:40:36 Robert Osfield escribió: > Thanks for the note Alborto, I've removed the std:: from in front of > the strncmp and added and include <string.h> just in case this is now > required. I've gone for string.h rather than cstring to avoid > possible issues under IRIX. > > On Sun, Aug 31, 2008 at 7:36 PM, Alberto Luaces <[EMAIL PROTECTED]> wrote: > > Hello, > > > > recent g++ versions are more strict with respect to C++ headers, so the > > compilation of examples/osgviewerGTK/osgviewerGTK.cpp fails: > > > > [ 97%] Building CXX object > > examples/osgviewerGTK/CMakeFiles/example_osgviewerGTK.dir/osgviewerGTK.o > > OSGSVN2/trunk/examples/osgviewerGTK/osgviewerGTK.cpp: In member function > > 'bool ExampleOSGGTKDrawingArea::_clicked(GtkWidget*)': > > OSGSVN2/trunk/examples/osgviewerGTK/osgviewerGTK.cpp:53: error: 'strncmp' > > is not a member of 'std' > > trunk/examples/osgviewerGTK/osgviewerGTK.cpp:55: error: 'strncmp' is not > > a member of 'std' > > make[2]: *** > > [examples/osgviewerGTK/CMakeFiles/example_osgviewerGTK.dir/osgviewerGTK.o > >] Error 1 > > > > The solution is either to replace the inclusion of <string> with > > <cstring> or remove the std:: namespace prefix from the two calls to > > std::strncmp() at lines 53 and 55. > > > > Alberto _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
