Ubuntu 11.04 error: using typedef-name ‘ofPoint’ after ‘class’

Ubuntu 11.04 64bit
Latest github version of oF (Apr 29, 2011)

Error:
In file included from …/…/…/openFrameworks/utils/ofThread.h:4:0,
from …/…/…/openFrameworks/sound/ofOpenALSoundPlayer.h:6,
from …/…/…/openFrameworks/sound/ofSoundPlayer.h:58,
from …/…/…/openFrameworks/app/ofAppRunner.cpp:5:
…/…/…/openFrameworks/utils/ofTypes.h:10:7: error: using typedef-name ‘ofPoint’ after ‘class’
…/…/…/openFrameworks/types/ofPoint.h:5:17: error: ‘ofPoint’ has a previous declaration here
…/…/…/openFrameworks/utils/ofTypes.h:184:7: error: redefinition of ‘class ofRectangle’
…/…/…/openFrameworks/types/ofRectangle.h:20:19: error: previous definition of ‘class ofRectangle’
…/…/…/openFrameworks/utils/ofTypes.h:251:7: error: redefinition of ‘class ofColor’
…/…/…/openFrameworks/types/ofColor.h:7:14: error: previous definition of ‘class ofColor’
…/…/…/openFrameworks/utils/ofTypes.h:311:7: error: redefinition of ‘class ofBaseDraws’
…/…/…/openFrameworks/types/ofBaseTypes.h:29:18: error: previous definition of ‘class ofBaseDraws’
…/…/…/openFrameworks/utils/ofTypes.h:329:7: error: redefinition of ‘class ofBaseUpdates’
…/…/…/openFrameworks/types/ofBaseTypes.h:56:20: error: previous definition of ‘class ofBaseUpdates’
…/…/…/openFrameworks/utils/ofTypes.h:341:7: error: redefinition of ‘class ofBaseHasTexture’
…/…/…/openFrameworks/types/ofBaseTypes.h:68:23: error: previous definition of ‘class ofBaseHasTexture’
…/…/…/openFrameworks/utils/ofTypes.h:351:7: error: redefinition of ‘class ofBaseHasPixels’
…/…/…/openFrameworks/types/ofBaseTypes.h:78:22: error: previous definition of ‘class ofBaseHasPixels’
…/…/…/openFrameworks/utils/ofTypes.h:360:7: error: redefinition of ‘class ofBaseImage’
…/…/…/openFrameworks/types/ofBaseTypes.h:90:87: error: previous definition of ‘class ofBaseImage’
…/…/…/openFrameworks/utils/ofTypes.h:368:7: error: redefinition of ‘class ofBaseVideo’
…/…/…/openFrameworks/types/ofBaseTypes.h:138:64: error: previous definition of ‘class ofBaseVideo’
In file included from …/…/…/openFrameworks/sound/ofOpenALSoundPlayer.h:6:0,
from …/…/…/openFrameworks/sound/ofSoundPlayer.h:58,
from …/…/…/openFrameworks/app/ofAppRunner.cpp:5:
…/…/…/openFrameworks/utils/ofThread.h:60:2: error: ‘ofMutex’ does not name a type
In file included from …/…/…/openFrameworks/graphics/ofGraphics.h:8:0,
from …/…/…/openFrameworks/graphics/ofTexture.h:5,
from …/…/…/openFrameworks/graphics/ofImage.h:4,
from …/…/…/openFrameworks/app/ofAppRunner.cpp:7:
…/…/…/openFrameworks/types/ofTypes.h:58:7: error: redefinition of ‘class ofStyle’
…/…/…/openFrameworks/utils/ofTypes.h:283:14: error: previous definition of ‘class ofStyle’
make: *** [obj/Debug/openFrameworks/app/ofAppRunner.o] Error 1
there has been a problem compiling Debug OF library
please report this problem in the forums

The same on Windows using CodeBlocks and trying to build.

Okiay I think I narrowed it down to having two ofTextures.h (in /graphics and /gl) and two ofTypes.h (in utils/ and types/)

i think it’s a problem in your local setup, those files were moved from graphics to gl and utils to types and perhaps when pulling your git hasn’t removed the old ones. in the repo they are only in one location:

https://github.com/openframeworks/openFrameworks/tree/master/libs/openFrameworks/utils