Problem compiling OgreNewt + FC5 + gcc-4.1.1

abstract

03-11-2006 20:28:26

this is what happens:


g++ -O2 -I/home/alex/Desktop/ogrenew/OgreMain/include -I/home/XXXXXXXXX/Desktop/newtonSDK/sdk -I/usr/local/include -Iinc -I/usr/include/linux -c -o src/OgreNewt_BasicFrameListener.o src/OgreNewt_BasicFrameListener.cpp
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/cstddef:54: error: '::ptrdiff_t' has not been declared
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/cstddef:55: error: '::size_t' has not been declared
/usr/include/string.h:39: error: 'size_t' has not been declared
/usr/include/string.h:43: error: 'size_t' has not been declared
-----
and on and on and on....


any ideas? sorry if this is not the place to post this

EDIT: i did try adding cstddef, and stddef.h in various places... but it seems the problem is in libstdc++-devel headers...

kartweel

18-11-2006 00:12:21

Hi,

I just compiled it on gentoo with gcc-4.1.1. I kept getting 'size_t' has not been declared so I added <stddef.h> to Newton.h in my /usr/include. Probably not the nicest thing to do, but it worked.

I haven't tried FC5, but it looks to be something with your devel setup.