Xcode 3.2.1 - redefinition of class ofEvent<ArgumentsType>

Hi guys!!

I’ve just installed Xcode 3.2.1 and when I compile any project that uses ofEvent (such as ofxSimpleGuiToo or ofxMtActions example) Xcode came up with the error of the image!!

[attachment=0:2dakzfzl]Captura de pantalla 2010-03-30 a las 05.18.05.jpg[/attachment:2dakzfzl]

Someone know what’s happening here??? It’s a Xcode problem because I had the same problem in 0.06 version.

Thanks guys!

![](http://forum.openframeworks.cc/uploads/default/669/Captura de pantalla 2010-03-30 a las 05.18.05.jpg)

I think I’ve found the solution!!

I’ve commented the #include ofEventUtils.h in the ofxMSAInteractiveObject.h and compile with 10.6, because in 10.5 i had another error that is:

** “std::basic_ostream<char, std::char_traits >& std::basic_ostream<char, std::char_traits >::_M_insert(double)”**

I don’t know what could be this but… at least in 10.6 Release & Debug works!

Any toughs why in Xcode 3.2 I didn’t get any error with ofEventUtils and with Xcode 3.2.1 yes?


hey there,

it appears that ofEventUtils is missing an “include guard”


can you try adding this to the ofEventUtils.h (double click the openFrameworksLib.xcodeproj to get to the openframeworks project)

add the #ifndef / #define at the absolute top, and the matching #endif at the bottom.

#ifndef _OF_EVENT_UTILS  
#define _OF_EVENT_UTILS  

and let us know if that helps?

take care,

yep, it works!!! that was the solution

thanks for all!!!

cheers zach