Message: Re: Geant4 compilation in Debug fails due to too many objects Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Geant4 compilation in Debug fails due to too many objects  

Forum: Installation and Configuration
Re: None Geant4 compilation in Debug fails due to too many objects (David Sarria)
Re: None Re: Geant4 compilation in Debug fails due to too many objects (Guy Barrand)
Date: Apr 23, 09:12
From: Ben Morgan <Ben Morgan>

>  (Incidentally, an option of VisualC++ to know is "/bigobj". Now, with templates, inlines, etc... we may fall on a
> 65535 limit in the compilation of one "single unit". This option permits to bypass that. I have it by default in 
> my things now).
> 
>   Hope it will help...
> 
>    Cheers. Guy
>

David, could you try adding the /bigobj flag Guy mentions, either in the project or through the CMake GUI by editing CMAKE_CXX_FLAGS and appending the option please?

My reading of Guy's description and the MSVC documents suggest this might be the workaround we need..

Cheers,

Ben

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Geant4 compilation in Debug fails due to too many objects   (Guy Barrand - Apr 23, 11:31)
(_ None: Re: Geant4 compilation in Debug fails due to too many objects   (Tom Roberts - Apr 23, 11:49)
(_ None: Re: Geant4 compilation in Debug fails due to too many objects   (David Sarria - Apr 24, 14:40)
(_ None: Re: Geant4 compilation in Debug fails due to too many objects   (David Sarria - Apr 26, 10:53)
(_ None: Re: Geant4 compilation in Debug fails due to too many objects   (David Sarria - May 01, 08:43) new
(_ None: Re: Geant4 compilation in Debug fails due to too many objects   (David Sarria - May 09, 02:30) newer
 Add Message Add Message
to: "Re: Geant4 compilation in Debug fails due to too many objects "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]