Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: George Bosilca (bosilca_at_[hidden])
Date: 2007-04-18 13:16:54

That's right, long and int have the same size on Windows 32 and 64
bits (always 32 bits). However, they are considered as being
different types (!!!).

The main problem came from the fact that if we want to use our
modular approach on Windows (DLL loaded at runtime) we have to
compile in C++ mode. The C++ compiler consider the types int and long
as being different (even if they have the same number of bytes). No
implicit cast is allowed by the VC compiler when in C++ mode.
Therefore, we have to force an explicit cast everywhere.


On Apr 18, 2007, at 1:04 PM, Roland Dreier wrote:

>> So, either we add the explicit cast from the beginning or I will have
>> to add it next time I compile on Windows ...
> I thought the problem with Windows was that long was always 32 bits
> (the same size as int) even on 64-bit platforms?
> - R.
> _______________________________________________
> devel mailing list
> devel_at_[hidden]

  • application/pkcs7-signature attachment: smime.p7s