I was trying to compile raytracer-code but it failed.
I managed to get it compiled after doing some modifications to code.
There seems to be two bugs in WPCG code.
First i got this error.
WP_Model.h:393: error: extra qualification ‘WPCG::WP_Square::’ on member ‘WP_Square’
make: *** [WP_2D.o] Error 1
This seems to relate to some problem with the gcc4. Fix for this error was to remove WP_Square:: part from that line.
After trying to compile I got second error and it looked like this:
WP_Terrain.C: In constructor ‘WPCG::WP_Terrain::WP_Terrain(int, int, int, WPCG::scalar, int)’:
WP_Terrain.C:95: error: ‘INT_MAX’ was not declared in this scope
make: *** [WP_Terrain.o] Error 1
I fixed this error by including limits.h.
i am using ubuntu 10.04 64bit