Hi Brede,
Thanks for the suggestion. Perhaps it'd be best to move all the code
to use putenv.
Temporarily I've checked in a #ifndef _WIN32 block around the offending code.
Robert.
Why does MS use _putenv rather than putenv?
Robert.
On 7/14/06, Brede Johansen <[EMAIL PROTECTED]> wrote:
Hi Robert,
> Ack. Is putenv available?
_putenv
This is my solution
#if (_MSC_VER >= 1400) // Visual Studio 2005
#include <sstream>
int setenv(const char *name, const char *value, int /*rewrite*/)
{
std::stringstream sstr;
sstr<<name<<'='<<value;
return _putenv(sstr.str().c_str());
}
#endif
Brede
On 7/14/06, Robert Osfield <[EMAIL PROTECTED]> wrote:
> Hi Brede,
>
> On 7/14/06, Brede Johansen <[EMAIL PROTECTED]> wrote:
> > osgconv.cpp reports an error in VC 2005.
> > 'setenv' :identifier not found
>
> Ack. Is putenv available?
>
> Robert.
> _______________________________________________
> 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/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/