Is anybody using OCUnit (as in Xcode 4.2 Unit Testing) with C++ code successfully?
After hours trying to understand what's going on I'm now pretty convinced there are some major flaws in using Xcode 4 and OCUnit to test C++ code from Objective-C++ files (.mm)
The main application (Cocoa with some C++ business logic) compiles fine! The trivial .mm test class fails with weird compiler errors, varying between
- Use of undeclared identifier (C++ class name)
- Use of incomplete type
- C++ requires a type specifier for all declarations
and so forth. Basically it seems to be terribly confused with the C++ bits. The classes the test files complain about compile JUST FINE from the main application! They can be instantiated in the main application JUST FINE.
Anybody having encountered and solved this before?
Thanks, Jay