Message: Re: Compiling Geant4 with Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Compiling Geant4 with  

Forum: Installation and Configuration
Re: Question Compiling Geant4 with "Debug" breaks due to too many objects (Geir Meyer)
Date: 25 Jan, 2016
From: Ben Morgan <Ben Morgan>

On Wed, 20 Jan 2016 08:46:43 GMT, Geir Meyer wrote:
> Hi,
> 
> I'm using: Windows7 64, Geant4 10.2.0, Visual Studio 2015, CMAKE 3.4.1
> 
> Compiled Geant4 as in "BookInstalGuide.pdf", except using "--config
> Debug" instead of "--config RelWithDebInfo".
> 
> The compilation breaks down with too many objects: (LINK : fatal error
> LNK1189: library limit of 65535 objects exceeded
> [F:\dev-lib\geant4\build\10.02.00-vs-2015-no-ui-dbg\source\processes\G4processes.vcxproj])
> 
> MSDN suggest to split the library into several libraries each containing
> less than 65535 objects.
> 
> Has anyone managed to build Geant4 with full debug support on Windows?
> 
> (this question is related to question 1777)
> 
> Regards, Geir Meyer
> 

This is an issue with the size of the current G4processes DLL (or rather the number of symbols it exports). As far as I know (and I am not an expert of Windows DLLs), this isn't solvable without reducing the symbol table size, and so either modifying which symbols are exported or splitting G4processes into smaller components. The latter is on the workplan for this years 10.3 release.

Cheers,

Ben.

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

1 Note: Re: Compiling Geant4 with   (Geir Meyer - 27 Jan, 2016)
1 Feedback: Re: Compiling Geant4 with   (Ben Morgan - 29 Jan, 2016)
2 None: Issues compiling GEANT   (Amhis Yasmine - 29 Jan, 2016)
1 Warning: Re: Issues compiling GEANT   (Ben Morgan - 29 Jan, 2016)
 Add Message Add Message
to: "Re: Compiling Geant4 with "

 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 ]