[Gtk-sharp-list] Compile Errors
Antonius Riha
antoniusriha at gmail.com
Sun Apr 24 18:47:33 UTC 2016
Looks like a bug with escaping white spaces in mcs.
To work around you can manually add the references instead of using the
-pkg option: -r:"C:/Program Files
(x86)/Mono/lib/gtk-sharp-2.0/pango-sharp.dll" -r:"C:/Program Files
(x86)/Mono/lib/gtk-sharp-2.0/atk-sharp.dll" -r:"C:/Program Files
(x86)/Mono/lib/gtk-sharp-2.0/gdk-sharp.dll" -r:"C:/Program Files
(x86)/Mono/lib/gtk-sharp-2.0/gtk-sharp.dll" -r:"C:/Program Files
(x86)/Mono/lib/gtk-sharp-2.0/glib-sharp.dll"
- antonius
On 2016-04-24 20:19, hack attack wrote:
> Help!
>
> Any suggestions to eliminate the following compile errors:
>
> C:\Program Files (x86)\Mono>mcs e:\c#\hellogtk.cs -pkg:gtk-sharp-2.0
> error CS2001: Source file `Files' could not be found
> error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/pango-sharp.dll'
> could not be found
> error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/atk-sharp.dll'
> could not be found
> error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/gdk-sharp.dll'
> could not be found
> error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/gtk-sharp.dll'
> could not be found
> error CS2001: Source file `(x86)/Mono/lib/gtk-sharp-2.0/glib-sharp.dll'
> could not be found
> Compilation failed: 6 error(s), 0 warnings
>
> Source file e:\c#\hellogtk.cs:
> using System;
> using Gtk;
> class Hello
> {
> static void Main ()
> {
> Application.Init ();
> Window window = new Window ("Hello Mono World");
> window.Show ();
> Application.Run ();
> }
> }
>
> I have even put the source file in mono\lib wth same error.
> What is causing the error?
> Thank you for your help
> A. Hack
>
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
--
Antonius Riha
Kohlenhofgasse 5/8
1150 Wien
Tel.: +43 650 4031388
More information about the Gtk-sharp-list
mailing list