this one is super ez. here is the full example
using System;
using System.Runtime.InteropServices;
public class HelloWorld
{
static public void Main( string[] args )
{
MYLIB_helloWorld();
}
[DllImport("libmylib.so")]
private static extern void MYLIB_helloWorld();
}
then run with
gmcs HelloWorld.cs mono HelloWorld.exe
No comments:
Post a Comment