[Insight-users] wrapitk maintenance branch r527 still results in /bigobj errors on win64, vs 2008 SP1

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sat Feb 19 03:18:31 EST 2011


Le 19 févr. 11 à 08:56, Charl Botha a écrit :

> On Fri, Feb 18, 2011 at 21:20, Charl Botha <c.p.botha at tudelft.nl>  
> wrote:
>> # on visual studio 2005 and later, we need to use /bigobj as the
>> # generated wrappings take up more than 65535 sections in some
>> # objects.
>> IF(CMAKE_COMPILER_2005)
>>  ADD_DEFINITIONS(/bigobj)
>> ENDIF(CMAKE_COMPILER_2005)
>>
>> (I contributed this patch some months ago)
>
> It seems that somehow CMAKE_COMPILER_2005 does not evaluate to true on
> my VS 2008 SP1 setup, although the documentation says that it should
> on VS 2005 and newer. In any case, this code *does* work (/bigobj is
> added to the project command-lines), and is better because it's only
> triggered on Win64 with MS where the problem occurs:
>
> # With MS compilers on Win64, we need the /bigobj switch, else  
> generated
> # code results in objects with number of sections exceeding object  
> file
> # format.
> # see http://msdn.microsoft.com/en-us/library/ms173499.aspx
> IF(CMAKE_CL_64)
>  ADD_DEFINITIONS(/bigobj)
> ENDIF(CMAKE_CL_64)
>
> On to the next build problem... :)

Hi Charl,

Are you aware that ITK 3.20 won't be able to allocate large images  
with visual studio 64bit?
This bug has been fixed in ITK v4, but not backported to ITK v3.

Thanks for the fix. I'll integrate it in ITK v4.

Regards,

Gaëtan


-- 
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/pipermail/insight-users/attachments/20110219/9a2391e0/attachment.pgp>


More information about the Insight-users mailing list