[Mono-dev] Embedding C

Paolo Molaro lupus at ximian.com
Wed Mar 22 14:04:46 EST 2006

On 03/21/06 Rusmin Susanto wrote:
> I followed the instruction above. But I always get this error:
>   ./teste: error while loading shared libraries: libmono.so.0: cannot open shared object file: No such file or directory

This means you didn't install mono correctly (typically you didn't set
LD_LIBRARY_PATH or the /etc/ld.so.conf file to include the directory where
libmono is installed).

>   2. Is there any standard library in mono that is implemented in C and
> executed via internal calls?  Basically, I want to know real examples
> (in the real Mono runtime implementation) that are executed in similar
> way to the examples in the embed folder.
>   I see a lot of the following code
>   [MethodImplAttribute (MethodImplOptions.InternalCall)]
>   inside the mcs sub-folders. So, I presume there must be some functions
> in the standard library that are implemented in C

The mapping between the C# internal call anmes and the C function names
is done in mono/metadata/icall.c: there are several examples of methods
docs/internal-calls should be read as well if you're interested in
internal calls.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list