Hello Philipp,

Philipp Reiter wrote:
> Philipp Reiter wrote:
>> Hello
>>
>> If im compiling OpenSG 1.8 at Ubuntu with g++-4.3 on an 64bit Intel i get:
>> Source/System/FileIO/OBJ/OSGOBJSceneFileType.cpp:179: error: 'INT_MAX'
>> was not declared in this scope
>> ...
> Solution:
> Adding limits.h to
> OSGOBJSceneFileType.h
> OSGPNMImageFileType.h
> OSGText.h
> fix the problem.

hm, it should be included in the corresponding .cpp, i.e. 
OSGOBJSceneFileType.cpp has this:

#ifdef OSG_SGI_STL

//#include <limits>
#ifndef INT_MAX
#define INT_MAX std::numeric_limits<Int32>::max()
#endif
#else
#include <limits.h>
#endif

looks as if OSG_SGI_STL was defined for some reason.

> Thanks to Martin Hecher for the hint.

Anyways, many thanks to both of you for figuring it out and letting us 
know how fix/work around it.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to