[BUG & FIX] Compiling 0.7.5 with GCC 4.6.0 ptrdiff_t
Posted: Wed Apr 20, 2011 22:44
I just upgraded to GCC 4.6.0 and ran into this issue when compiling CEGUI 0.7.5.
This may be in other versions, but I don't know.
The compiler error was:
It seems GNU moved some header includes around at some point.
Anyway, all I did to fix it was to add #include <cstddef> to the list of included headers in CEGUIString.h
This is pretty simple but just wanted to post this in case anyone else ran into the same problem.
This may be in other versions, but I don't know.
The compiler error was:
Code: Select all
../../cegui/include/CEGUIString.h:68:11: error: 'ptrdiff_t' does not name a type
It seems GNU moved some header includes around at some point.
Anyway, all I did to fix it was to add #include <cstddef> to the list of included headers in CEGUIString.h
This is pretty simple but just wanted to post this in case anyone else ran into the same problem.