I have been trying to get a simple C++ test to run using CppUnit on OS X. Unfortunately, I was running into problems left-and-right, no matter what approach I tried (Xcode or GNU build tools).
Finally, I stumbled across the following bit of advice.
I rebuilt CppUnit from sources using the two specified command lines (
make are two separate commands in case it is not clear from the example). Then I did a clean and build-and-go in my Xcode project and IT FINALLY WORKED.