1
votes

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)?

1

1 Answers

0
votes

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 (e.g. 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.