Hi Martin,
Is this a new Sun compiler set? It seems to be raising errors on code
that's been built on Solaris before.
As an attempt to get rid of the compile errors I've added an
#include<unistd.h> to the top of GraphicsWindowX11.cpp, and an extern
"C" { ... } block around the X11ErrorHandling function. I don't know
if this will fix the build, but it does at least compile under Linux.
This changes are now checked into SVN.
Robert.
On 4/13/07, Martin Spott <[EMAIL PROTECTED]> wrote:
Martin Spott wrote:
> "Robert Osfield" wrote:
> > I have change the hitItr to be const_iterator, and it compiles cleanly
> > for me with gcc4.0.2, could you try the attached Dragger.
>
> Thank you, that one works with SunStudio11.
.... but now I have the next one, after updating from SVN this
evening - still on Solaris/SunStudio11:
[ 45%] Building CXX object
src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowX11.o
"/usr/local/src/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp", line 361: Error: The
function "usleep" must have a prototype.
"/usr/local/src/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp", line 382: Error: The
function "usleep" must have a prototype.
"/usr/local/src/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp", line 1125: Warning
(Anachronism): Formal argument 1 of type extern "C" int(*)(_XDisplay*,XErrorEvent*) in call to
XSetErrorHandler(extern "C" int(*)(_XDisplay*,XErrorEvent*)) is being passed
int(*)(_XDisplay*,XErrorEvent*).
2 Error(s) and 1 Warning(s) detected.
make[2]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowX11.o] Error
2
make[1]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/all] Error 2
make: *** [all] Error 2
Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/