Great website, has been super helpful these past few weeks. I am writing an app in Cocoa that requires the use of a C++ dylib and header files. I need to call functions from a header file in my app. Ive tried several ways to import and include these libraries into my app but always end up with missing symbol errors. The libraries i am using are from the autodes开发者_JS百科k maya API, anyone have any idea the correct way to do this? Thanks in advance!
You need to make sure the files calling the functions are Objective-C++ files (basically, give them the extension ".mm"), and you need to add the library to your project so it gets linked in.
精彩评论