[osg-users] FW: osg submissions??
Robert Osfield
robert.osfield at gmail.com
Mon Jul 23 13:26:32 PDT 2007
On 7/23/07, Andy Skinner <Andy.Skinner at mathworks.com> wrote:
> I think the unusual usage is just that we're not using gcc.
Plenty of other people don't use gcc too, plenty of people have been
using the same platforms as you without issues. The code you are
having problems has been tested over and over again on all the major
platforms over many years - the OSG hasn't just been ported to all its
platforms, and it hasn't just appeared overnight. There is something
specific to the way you are building things that is breaking things.
> What about if, instead of include stdlib.h et al, I put in statements
> like "using std::atof;"? Would those sorts of things be bad in a
> widely-included header?
using std::atof only works if you include cstdlib, so it'll break many
platforms.
>
> Although I can probably find some other headers, it seems to me like
> they'd be arbitrarily chosen. The GLExtensions one, for example, just
> doesn't seem to me to be the right place, except that around half of the
> files include it.
We'll thats half the way there. GLExtensions itself isn't a widely
included file so it doesn't pollute too much for the gain it provides.
> For the moment, I'm going to try switching the includes to some using
> statements, and see how it gets along.
We'd end up having to add losts of #ifdef using #endif blocks which is
really bad way to pollute the code.
Robert.
More information about the osg-users
mailing list