i need c++ class to access its funtions in obejctive c
tried using import but doesn't work.
Need help!!
i need c++ class to access its funtions in obejctive c
tried using import but doesn't work.
Need help!!
You also need to use the C++ compiler. You can do this in one of two ways:
1. Rename the file so its extension is .mm instead of .m.
2. Change the "Compile Sources As" build option for that file to Objective-C++.
I agree with dgatwood's response except for one minor niggle. They wrote:
You also need to use the C++ compiler.
What you want is the Objective-C++ compiler.
Share and Enjoy
—
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"