What caused this happen?CV_XADD parse issue in Xcode 4.2
Hi,
I am new in using Opencv with Xcode on MAC. I used to build the lib and compiled in XCode 3.2.6, it was ok. Then I upgraded my Xcode 4.2, but this time Xcode raised compiling error, says that /Developer/SDKs/MacOSX10.6.sdk/usr/local/include/opencv2/core/operations.hpp:63:69: note: instantiated from: #define CV_XADD(addr, delta) __atomic_fetch_add((_Atomic(int))(addr), (delta), 5) ~~~^ /Developer/SDKs/MacOSX10.6.sdk/usr/local/include/opencv2/core/operations.hpp:2326:17: error: expected expression [1] CV_XADD(d.hdr.refcount, 1); ^ /Developer/SDKs/MacOSX10.6.sdk/usr/local/include/opencv2/core/operations.hpp:63:71: note: instantiated from: #define CV_XADD(addr, delta) __atomic_fetch_add((_Atomic(int))(addr), (delta), 5) ^ /Developer/SDKs/MacOSX10.6.sdk/usr/local/include/opencv2/core/operations.hpp:2374:40:{2374:40-2374:64}: error: expected '(' for function-style cast or type construction [1] void addref() { if( hdr.refcount ) CV_XADD(hdr.refcount, 1); } Why did this happen and how could I o to modify it?
thanks
Minghao