[Mono-dev] `System.Diagnostics.Process' is defined multiple times

Zoltan Varga vargaz at gmail.com
Mon Dec 19 17:36:47 EST 2005


                                          Hi,

  Try the gmcs compiler it will automatically use the 2.0 libraries,
so no need to do
-r:/usr/lib/mono/2.0/System.dll.

              Zoltan

On 12/19/05, Jurgen Schoeters <jurgen.schoeters at gmail.com> wrote:
> Hi,
>
> Im'trying to compile a program which uses System.Diagnostics.Process to
> execute a C-program, but my program also uses System.I0.Ports from the
> 2.0 library and this gives a conflict because System.Diagnostics.Process
> is defined multiple times (in the 1.0 and 2.0 library).
> Could someone help me to solve this problem ?
> I don't have much experience with mono.
>
> Compiler output:
>
> mcs Main.cs Config.cs Vectors.cs Gui.cs Comm.cs
> -r:/usr/lib/mono/2.0/System.dll  -out:Asic_Test_Machine.exe
> -pkg:gtk-sharp-2.0 -pkg:gecko-sharp-2.0;
> Comm.cs(229,4): error CS0433: The imported type
> `System.Diagnostics.Process' is defined multiple times
> /usr/lib/mono/2.0/System.dll: `System.Diagnostics.Process', name of
> symbol related to previous error
> /usr/lib/mono/1.0/System.dll: `System.Diagnostics.Process', name of
> symbol related to previous error
> Compilation failed: 1 error(s), 0 warnings
> make: *** [Asic_Test_Machine.exe] Error 1
>
> Greetings, Jurgen
>
>
>
>
> _______________________________________________
> 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