[Mono-list] Creating a minimal runtime

Guenther Roith groith@tcrz.net
Fri, 19 Jul 2002 19:55:21 +0200

> groith@tcrz.net (Guenther Roith) wrote:
> > Put corlib one directory bleow in "lib"
> > e.g. your files are in c:\somthing\myfiles --> corlib.dll is in
> > c:\something\lib
> That sounded confusing, but it worked. To recap, I had to
> do this:
> C:\NetTest\Bin\hello.exe + all other DLLs
> C:\NetTest\Lib\corlib.dll + any other mono dlls
> So the next question is: why is the default library
> search path "../lib"? Seems a strange choice.

The path to the mono assemblys is hardcoded to ../lib
Thats because a unix system has a directory tree like this:



Normally executables are put in /bin or /usr/bin (where the sub-tree is
similiar) and libaries are in /lib.
For comaptiblity it makes sense to keep that. If you however want to change
edit /mono/mono/os/win32/util.c
and change the value and then recompile.