Linking to a C++ native library in MonoTouch

前端 未结 1 1981
终归单人心
终归单人心 2021-01-24 10:55

I am reading up about linking native libraries into MonoTouch, specifically this documentation:

http://monotouch.net/Documentation/Linking_Native_Libraries

Here

相关标签:
1条回答
  • 2021-01-24 11:26

    You can certainly use a C++ api, but you will need to either wrap it in a C api, or a ObjC+btouch api to be able to talk to this. Invoking C api's uses PInvoke, and C++ libraries use symbol mangling. While theoretically you could pinvoke to the mangled symbol, this isn't a good idea as the mangling is compiler specific.

    0 讨论(0)
提交回复
热议问题