[Mono-osx] interacting with external libraries
Pedro Gutierrez
pgutierrez at etsii.upm.es
Tue Mar 27 11:00:10 EDT 2007
Svetoslav,
You can always wrap a .so library around the .a library, then use
DllImport to "map" static C# functions to the exported C++ symbols.
As an example:
[Interop.DllImport("model.so", EntryPoint = "initialize")]
private static extern void Initialize (bool firstTime);
Additional information and examples is available at Micfosoft's MSDN.
Custom datatypes requiere more work, but this simple example should
get you going.
If you find a way to link the .a library directly please post that
information here, I would like to know how to do it.
Regards,
Pedro
More information about the Mono-osx
mailing list