I'm working on a native extension for osx. Everything compiles ok, but it gets an error and crashes when ran. It's always in reference to the use of an imported c++ class. To test, I created a class that has a single function that returns a string. When the function is called the application crashes with an error like:
Dyld Error Message:
Symbol not found: __ZN9TestClass4testEv
Expected in: flat namespace
From what I can tell in xcode, the class is included in the flat namespace. Any ideas what I'm doing wrong?