Sure, I'll try that now. In the meantime, I just build sockinet.i, and it does have two versions of herror in it. The first one does not have throw() in it. I _think_ it is saying that it came from /usr/include/netdb.h. That has herror defined as: extern void herror (__const char *__str) __THROW; I wonder if __THROW is in this case defined to empty.
OK, I just compiled sockinet.cpp with the line commented out. I'd suggest that. andy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Tuesday, September 18, 2007 11:25 AM To: OpenSceneGraph Users Subject: Re: [osg-users] solaris build error -- sockinet.cpp HI Andy, If the throw needs to be conditional then this is probably what needs to be done. Putting up with a warning is far better than breaking the build so it might be best to just remove it right now. I do actually wonder why herror() is there at all. The function is not used anywhere in the .net plugin... I commented it out and everything compiled... Could you try commenting out the offending line and let me know if it builds ok. Robert. On 9/18/07, Andy Skinner <[EMAIL PROTECTED]> wrote: > > > > > David Callu added the throw() as a warning fix. > > > > Could it be that this needs to be conditional? He needed it under Linux > because it was producing a warning. > > > > But in my Solaris build, there is (somewhere) a definition that doesn't > include that throw, and I can't build anymore. > > > > andy > > > > > > ________________________________ > > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Andy Skinner > Sent: Monday, September 17, 2007 2:48 PM > To: OpenSceneGraph Users > Subject: [osg-users] solaris build error -- sockinet.cpp > > > > > In building solaris, I am getting an error in > src/osgPlugins/net/sockinet.cpp. > > > > It says that the prior declaration for herror(const char*) has no exception > specification. > > > > The line is: > > void hereror(const char*) throw(); > > > > I'm not sure what has changed in this file since I built it last. > > > > andy > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org