I wanted to compile osgearth (trunk version) and encountered a compilation error:
/home/ddangelo/apps/osgearth_trunk/src/osgEarth/CacheSeed.cpp: In member function ‘void osgEarth::CacheSeed::seed(osgEarth::MapConfig*)’:
/home/ddangelo/apps/osgearth_trunk/src/osgEarth/CacheSeed.cpp:57: error: ‘INT_MAX’ was not declared in this scope
I just inserted
#include <limits.h> in CacheSeed.cpp to fix this. I am using ubuntu with g++ 4.3.2.