[Mono-dev] [Beginners] Problem to do a simple makefile
Kamil Skalski
kamil.skalski at gmail.com
Mon Sep 10 11:48:55 EDT 2007
2007/9/10, David Arnaud-Goddet <david.goddet at gmail.com>:
> 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
First of all you should use gmcs to compile code for .NET 2.0 version.
System.IO.Ports is AFAIR only available in 2.0.
> 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
>
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the Mono-devel-list
mailing list