Error when compile with DMD using -m64?

Marcone marcone at email.com
Tue Aug 10 17:13:31 UTC 2021


On Tuesday, 10 August 2021 at 15:55:42 UTC, Bastiaan Veelo wrote:
> On Tuesday, 10 August 2021 at 01:29:04 UTC, Marcone wrote:
>> Solved converting long and int.
>
> Use `size_t` and `ptrdiff_t` instead to make your program 
> compile in both 32 bit and 64 bit modes.
>
> https://dlang.org/spec/type.html#aliased-types
>
> -- Bastiaan.

Thank you very much! Your information was very precious! It 
worked very well! Now I can create x32 or x64 compatible programs 
without creating two codes.


More information about the Digitalmars-d-learn mailing list