[Insight-developers] Sun Compiler Help

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Jul 29 16:11:13 EDT 2010


Le 29 juil. 10 à 05:19, Bill Lorensen a écrit :

> Gaëtan is the developer that has Sun compilers.
>
> On Wed, Jul 28, 2010 at 10:19 PM, Hans Johnson <hans- 
> johnson at uiowa.edu> wrote:
>> Hello,
>>
>> On the last T-Con, there was a developer that was supporting the Sun
>> compiler.  Sorry, but I don’t remember who that was.
>>
>> Could you please help me figure out how to check for an ansi98  c++
>> compiler?
>>
>> #if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x540)
>> #error "__SUNPRO_CC <= 0x540 not supported under ITKv4"
>> #endif
>> #if defined(__SVR4) && !defined(__SUNPRO_CC)
>> #error "__SRV4 __SUNPRO_CC <= 0x540 not supported under ITKv4"
>> #endif
>>
>> Is the compiler that you are using on the the new Sun computers  
>> still called
>> the __SUNPRO_CC, and if so, what version of that compiler is it?   
>> (I thought
>> you stated that it was version 11).

It is the version 12.0.
It still define __SUNPRO_CC and assign it the value 0x590.

According to http://docs.sun.com/app/docs/doc/816-5175/ansi-5?l=en_US&a=view 
  , we should check for version greater or equal to 5.6.

__SVR4 is defined only for SPARC architecture. I don't know if it is  
useful to require a different version for i86 and for SPARC.
I guess it may be useful to find the endianess.

Gaëtan

>>
>> There are some conditionals that change the behavior of debugging  
>> statements
>> due to incompatibilities of the sunpro 5 series c++ compilers, and  
>> I would
>> like to simplify the code by removing those.
>>
>> Thanks,
>> Hans
>> --
>> Hans J. Johnson, Ph.D.
>> Assistant Professor
>> 200 Hawkins Drive
>> T205 BT, The University of Iowa
>> Iowa City, IA 52242
>>
>> hans-johnson at uiowa.edu
>> PHONE: 319 353 8587
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>>
>>

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100729/d72fa7a1/attachment.pgp>


More information about the Insight-developers mailing list