[Mono-dev] Calling .NET code from unmanaged C

Robert Jordan robertj at gmx.net
Wed Dec 7 09:13:53 EST 2005


Jean Carrive wrote:
> I compiled the examples, but at run-time I get this error :
>  
> The assembly mscorlib.dll was not found or could not be loaded.
> It should have been installed in the '/usr/lib/mono/1.0/mscorlib.dll'
> directory.
> 
> Actually, when I installed Mono as a regular user, it installed itself under
> my home directory, and when I installed Mono as root, it installed itself
> under /opt/mono/-1.1.10
> 
> Did I miss some installation option ?

You have to call

mono_set_dirs ("/opt/mono-1.1.10/lib", "/opt/mono-1.1.10/etc");

before mono_jit_init ().

Robert




More information about the Mono-devel-list mailing list