Note that there are some explanatory texts on larger screens.

plurals
  1. POLinking to a C++ native library in MonoTouch
    primarykey
    data
    text
    <p>I am reading up about linking native libraries into MonoTouch, specifically this documentation:</p> <p><a href="http://monotouch.net/Documentation/Linking_Native_Libraries" rel="nofollow">http://monotouch.net/Documentation/Linking_Native_Libraries</a></p> <p>Here it describes linking to C libraries. Is it also possible to link to C++ libraries from MonoTouch? I am very new to MonoTouch and particularly to importing libraries, so I would appreciate any advice about problems I may face trying to import a C++ library, if this is indeed possible. Would wrapping the C++ library in an Objective-C library and then using btouch to import this be a good route to take? Or is there an easier approach? Bearing in mind that my knowledge of C++ (and Objective-C for that matter) can best be described as "dangerous". ;)</p> <p>The reason that I ask is that I am needing to make use of a C++ API from Sybase to access their Ultralite database. I have managed to get a sample application that accesses the Ultralite C++ API working in Xcode, with Objective-C. But now I am trying to port this sample to MonoTouch. The sample application can be found here:</p> <p><a href="https://github.com/BruceHill/Ultralite-Names-Sample-ObjC" rel="nofollow">https://github.com/BruceHill/Ultralite-Names-Sample-ObjC</a></p> <p>The Sybase documentation for Xcode mentions the following, with reference to using the API in Xcode:</p> <p><i>This tutorial uses the UltraLite C++ API. In order to eliminate the need to cast to C types, compile the source as C++. To compile the project as C++:</p> <ol> <li>In the Search in Build Settings box, enter Compile Sources As.</li> <li>Choose Objective-C++ from the options in the Value field </i></li> </ol> <p>What are the implications of this for working with this API in MonoTouch?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload