Message: 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

None Geant4 compilation in Debug fails due to too many objects  

Forum: Installation and Configuration
Date: Apr 23, 02:10
From: David Sarria <David Sarria>

Dear user,

I am trying to compile Geant4 with Qt, OpenGL, XERSES-C, in debug mode with Visual Studio 2015 (v14). The compilation fails in Debug mode (but everything is fine in Release or RelWithDebInfo modes). Apparently, a issue that was reported before (and should have been fixed from version 10.3+) is still there.

"LINK : fatal error LNK1189: library limit of 65535 objects exceeded [C:\Users\testeur\Desktop\windows-geant4-installati on-script\build\source\processes\G4processes.vcxproj]"

See : http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1778.html

I attached my full compilation log.

I would like to use Geant4 in Debug mode because it is obviously much more convenient for development. I need to use and debug Geant4 code in a Windows Visual Studio environment (I am already familiar with using Geant4 in Linux but I also want to set up a Windows environment in parallel). I would also like to avoid using "RelWithDebInfo" mode because it can be very tricky to debug in some cases (since it is modifying/optimizing the code).

In principle I don't need to have Geant4 libraries in Debug mode because I don't intend to modify them: I only intend to debug my own code. But, as far as I understood with the MSVC compiler, the user cannot use libraries compiled in Release mode with code compiled in Debug mode; and indeed when I tried to do it, I did not manage to run example B1. (Whereas using Linux (with GCC) I never had a problem using Release Geant4 libraries with my project in Debug mode (even if it is not recommended)).

Thanks in advance for the help.

-David

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   (David Sarria - Apr 23, 02:11)
2 None: Re: Geant4 compilation in Debug fails due to too many objects   (Guy Barrand - Apr 23, 08:46)
1 Question: Re: Geant4 compilation in Debug fails due to too many objects   (Ben Morgan - Apr 23, 09:12)
(_ 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: "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 ]