简体   繁体   中英

mix monotouch and Obj-C or C++

I got another crazy idea: why do I want to create a static lib in XCode, then create monotouch bindings for it then linking this lib with monotouch project. That would be much easier to have all the sources in a single project...

I'm trying to have Obj-C, or C or even C++ sources right in monotouch project compiled all-together. But apparently I got no luck with that. I can't make C code to compile from monodevelop.

Does anybody tried this approach? what are pros and cons (if it is possible)?

You're right that you can have several projects, in different languages, inside a single MonoDevelop solution.

However you'll still need to create bindings to access non .NET code (eg C/C++) and data from the main (C#) project solution.

So having a single solution can be a bit simpler in many cases but it won't be a lot simpler - unless you're using .NET for every projects.

Note: there are now binding solutions templates in MonoDevelop that can make binding non-.NET code simpler. That's more likely yo help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM