[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Openexr-devel] Compiler compatibility (MS C/C++ 13.x)
From: |
Aristarkh A Zagorodnikov |
Subject: |
RE: [Openexr-devel] Compiler compatibility (MS C/C++ 13.x) |
Date: |
Tue, 1 Feb 2005 10:44:53 +0300 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> .org] On Behalf Of Florian Kainz
> Sent: Monday, January 31, 2005 9:26 PM
> To: Aristarkh A Zagorodnikov
> Cc: address@hidden
> Subject: Re: [Openexr-devel] Compiler compatibility (MS C/C++ 13.x)
>
>
> Aristarkh A Zagorodnikov wrote:
> > Hello!
> >
> > I would like to note, that using IlmImf with MS C/C++ 13.x (from
> > MSVC 7.x) is not possible when language extensions are disabled (/Za
> > compiler switch). The problem is in ImfInt64.h with declaration of
> > Imf::Int64 type. The aforementioned compiler does not allow
> "long long"
> > declarations as 64-bit integer declarations when /Za switch
> is in effect.
> > The proposed solution is presented below:
> >
> > ImfInt64.h
> > // NOTE: begin of code changed by Aristarkh Zagorodnikov
> > #if defined PLATFORM_WIN32 && _MSC_VER >= 1300
> > typedef unsigned __int64 Int64;
> > #else
> > typedef long long unsigned int Int64;
> > #endif
> > // NOTE: end of code changed by Aristarkh Zagorodnikov
> > /*
> > NOTE: original code goes here
> >
> > typedef long long unsigned int Int64;
> > */
> > #endif
> >
> > P.S. Thanks to developers of The Library :) - it works great.
> > Actually, I do not remember any library with such a
> seamless integration
> > (compared with its size of course).
> >
> > Aristarkh A Zagorodnikov
> > X-Infinity Software
>
>
> Thank you for pointing this out. Do you know if /Za will
> disable "long long unsigned int" on compiler versions
> other than 13.x?
12.x (MSVC 6) does not support "long long" at all (although it does not
support lots of other things and I consider it outdated).
14.x (MSVC 2005 aka Whidbey, both Express and Visual Studio versions)
behaves the same like 13.x - "long long" is considered illegal with /Za in
effect.
Aristarkh A Zagorodnikov
X-Infinity Software
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: [Openexr-devel] Compiler compatibility (MS C/C++ 13.x),
Aristarkh A Zagorodnikov <=