[Mono-list] linkage question

Ryan Heaton ryan at webcohesion.com
Fri Feb 6 12:05:48 EST 2009

Thanks to everybody who replied.  My problem turned out to be solved
by Robert's suggestion: I had to rename my executable from full.exe to
fulltest.exe or something.

However, I'm still not clear as to how Mono resolves references to
other libraries.  It's clear that it loads all libraries that are in
the same directory as the executable.  But does that mean that for any
given executable, all libraries have to be in the same directory? Is
there no way to link libraries that are in a different directory?

Just FYI, I'm coming from a Java background, so I'm used to classpath
arguments on the command line...



On Fri, Feb 6, 2009 at 6:48 AM, Robert Jordan <robertj at gmx.net> wrote:
> Ryan Heaton wrote:
>> Apologies in advance for what should be a pretty basic question.  I'm new at
>> C# and mono development.
>> So I've got some library that I've compiled, in my case it's called
>> "full.dll". In that library is defined a class,
>> "Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService".
>> Now I want to write an executable that uses an instance of
>> Org.Codehaus.Enunciate.Samples.Genealogy.Services.SourceService.  I compile
>> that to a file "full.exe".  Now, when I try to run it, e.g.:
> Mono does not distinguish between assemblies with the same base name,
> like "foo.exe" and "foo.dll". Renaming the assemblies won't help either,
> so you must recompile one of them with /out:notfoo.{dll|exe} option.
> Robert
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

More information about the Mono-list mailing list