[Mono-list] Mono compilation error when using 64 bit platform: Error CS0016: Could not write to file `test', cause: AMD64 (CS0016)

Alan alan.mcgovern at gmail.com
Tue Sep 18 20:01:01 UTC 2012


Hey

If setting 'x64' is causing issues, just stop doing it :) The only
time this matters is if you are running on the microsoft framework and
p/invoking native libraries. If you're not doing that, then it's
pretty irrelevant. If you are running your application under mono, you
will get a 32bit .NET runtime if mono itself is 32bit and a 64bit .NET
runtime if mono itself is 64bit. It doesn't matter if the .NET
assembly itself has been compiled as '32bit only' or '64bit only'.

Also, this issue may be fixed if you update to Mono 2.10.9 or 2.10.10.

Alan

On 18 September 2012 18:38, matthieu Barthélemy <bonsouere at gmail.com> wrote:
>
>
> On Mon, Sep 17, 2012 at 10:37 AM, gregsan <gleban at gmail.com> wrote:
>>
>> Hi,
>>
>> I'm trying to compile a simple console application. If I set the platform
>> to
>> x86 it compiles without any issues, however if I change it to x64 I get
>> the
>> following error:
>>
>> Error CS0016: Could not write to file `test', cause: AMD64 (CS0016) (test)
>
>
>
> Does your project depend on another project or assembly set to an
> incompatible CPU type (x86)?
>
>
>>
>>
>> I'm doing the building in monodevelop 2.8.6.4 on Ubuntu 12.04 LTS 64 bit.
>> Mono version is  Mono 2.10.8 (tarball Mon Aug 20 22:44:15 CEST 2012)
>> (64-bit)
>>
>> Does anybody have any idea why this problem occurs?
>>
>> Thanks for any help,
>> Best,
>> Gregor
>>
>>
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/Mono-compilation-error-when-using-64-bit-platform-Error-CS0016-Could-not-write-to-file-test-cause-AM-tp4656661.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list