[Mono-dev] [Beginners] Problem to do a simple makefile

David Arnaud-Goddet david.goddet at gmail.com
Mon Sep 10 11:42:03 EDT 2007


Hi all,
I use Sharpdevelop to work with mono. It compiles and executes my source
code properly.
But I would like to do my own makefile.
I try this :

mcs -out:test.exe MyFile.cs -r:System.dll -r:atk-sharp.dll
-r:gdk-sharp.dll -r:glib-sharp.dll -r:gtk-sharp.dll -r:pango-sharp.dll

I copy the references from Mono-1.2.4\lib\mono\gac to the current folder.
In my cs file I use System.IO and System.IO.Ports. On Sharpdevelop the
assembly works but when I use my Makefile I obtaint :

Empty2.cs(3,7): error CS0234: The type or namespace name `Ports' does not
exist
in the namespace `System.IO'. Are you missing an assembly reference?
Empty2.cs(3,1): error CS0246: The type or namespace name `IO.Ports' could
not be
 found. Are you missing a using directive or an assembly reference?
Empty2.cs(3,7): error CS0234: The type or namespace name `Ports' does not
exist
in the namespace `System.IO'. Are you missing an assembly reference?
Empty2.cs(3,1): error CS0246: The type or namespace name `IO.Ports' could
not be
 found. Are you missing a using directive or an assembly reference?
Compilation failed: 4 error(s), 0 warnings

I don't understand! The references are the same in the 2 cases...
Thanks in advance.








David ARNAUD-GODDET
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070910/0ba98d2d/attachment.html 


More information about the Mono-devel-list mailing list