Problem 2464

Summary: Linker error 1189 (dll size) when build G4 11.0.0 in Debug mode on Windows
Product: Geant4 Reporter: Andrea <niso2012>
Component: cmakeAssignee: Ben Morgan <Ben.Morgan>
Status: RESOLVED LATER    
Severity: normal    
Priority: P4    
Version: 11.0   
Hardware: PC   
OS: Windows   

Description Andrea 2022-01-15 10:26:15 CET
I built Geant4.11.0.0 on Windows x64 in Release mode without errors.

If I build Geant4.11.0.0 on Windows x64 in Debug mode, I obtain an error from the Linker (LNK 1189) that said that “the limit of 65535 objects or members in a library has been exceeded”, in particular for the G4processes library.
And the resulting G4processes.dll has a size of 0 KB.
Comment 1 Ben Morgan 2022-01-31 16:10:31 CET
This is along known issue with Windows builds of the G4processes library. We're reviewing a new structure for organising libraries to reduce their size and resolve this issue. However, this is a long term project and so marking this as a LATER.