开发者

Calling functions from a C++ dylib and Header in a Cocoa Application

开发者 https://www.devze.com 2023-01-10 10:35 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消