How do I compile C++ code in Objective-C / Cocoa.
Rename the Objective-C implementation file from
This tells the Objective-C compiler that it is linking a C++ object
You cannot instantiate a C++ class directly because the constructor and destructor will not fire. Instead, you want to create a pointer and use the