[Gtk-sharp-list] -pkg:gtk-sharp insteadof -r:gtk-sharp
Juergen Moeller
juergen.moeller@elektrobude.de
Fri, 28 May 2004 08:54:31 +0200
Am Thursday 27 May 2004 17:01 schrieb Mike Kestner:
> > I cannot compile a little gtk-HelloWorld-Application with option '-r'.
> > However with '-pkg'. Why??? I remember I earlier did it with '-r'...
>
> Because the Gtk# assemblies are now installed to the GAC instead of
> libdir, so you need to use pkg-config or the -pkg flag to supply the
> full path the the assembly so mcs can locate it.
Thanks Mike!
So, now I have to compile gtk#-apps like this:
mcs -r:/path/to/gtk-sharp.dll app.cs or
mcs `pkg-config --libs gtk-sharp` app.cs
Right?
It works... however, the old way was more elegant, I think.
Another possibility is to put the path to the gtk-sharp.dll in the
environment variable $MONO-PATH ! :)
-Juergen