GCC Compile error with v1-8 [SOLVED]
Posted: Mon Dec 19, 2011 2:58 am
After updating my copy of ogre I found there is a compile error in OgreImage.cpp which is easily fixed by adding
What struck me as odd, was that it looks like it might have been like that for a little while.
Is it working for everyone else without the include?
This seems to only affect v1-8. I'm using GNU gcc 4.6.1 on Ubuntu Linux.
Here are the errors:
I would send a patch - however I don't have access to a scanner or fax to do the contributor form at the moment.
Merry Christmas if you celebrate it!
Code: Select all
#include <OgreMath.h>This seems to only affect v1-8. I'm using GNU gcc 4.6.1 on Ubuntu Linux.
Here are the errors:
Code: Select all
/home/nigel/prog/ogre/OgreMain/src/OgreImage.cpp: In static member function ‘static void Ogre::Image::applyGamma(Ogre::uchar*, Ogre::Real, size_t, Ogre::uchar)’:
/home/nigel/prog/ogre/OgreMain/src/OgreImage.cpp:557:13: error: incomplete type ‘Ogre::Math’ used in nested name specifier
/home/nigel/prog/ogre/OgreMain/src/OgreImage.cpp:558:13: error: incomplete type ‘Ogre::Math’ used in nested name specifier
/home/nigel/prog/ogre/OgreMain/src/OgreImage.cpp:559:13: error: incomplete type ‘Ogre::Math’ used in nested name specifier
Merry Christmas if you celebrate it!