Hi David, It seems like an assembly version mismatch. Try using gmcs instead of mcs (for targeting 2.0); and it shouldn't be needed to reference System.dll.
Also, assemblies installed on GAC can be referenced directly without copying files to your output path. My two bits. Regards, 2007/9/10, David Arnaud-Goddet <[EMAIL PROTECTED]>: > 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@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > -- Marcos - http://www.youcannoteatbits.org _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list