0 Replies Latest reply on Oct 16, 2012 10:06 AM by brad9376

    Native Extension Crash: Symbol not found / flat namespace

    brad9376 Level 1



      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?