[Mono-dev] How to create a dynamic library for Linux?

Laurent Le Brun laurentlb at gmail.com
Sat Dec 1 11:32:55 EST 2007


I'd like to create a dynamic library (for Linux), from a .NET source
file. I've searched in the web for this, but didn't find anything. I
hope this is the right list for this question.

So, I'd like to get a .so library, that I can call from C/C++ code.
I compiled my .NET files into a .dll file. Then, I compiled it to
native code (using mono --aot). But, the generated .so file doesn't
export my library functions (I checked using nm). I've seen symbols
like "method_info" or "class_info". Could they be useful for my need?

Is it possible to do this? Any advice or link is welcome.
Please note the main application is written in C++, but I don't want
to run it with mono.


PS : my functions only use and return ints. I guess there won't be any
problem with types.


More information about the Mono-devel-list mailing list