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

Michał Ziemski rook at roo.k.pl
Mon Sep 10 11:49:22 EDT 2007


Hi!

Try using gmcs rather than mcs.
AFAIR System.IO.Ports doesn't exist in NET 1.1

Cheers!
Michał Ziemski

David Arnaud-Goddet pisze:
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>   





More information about the Mono-devel-list mailing list