Geant4 11.3.2 Build Error LNK1189 "Library Limit"

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

Geant4 Version: 11.3.2
Operating System: Windows 11
Compiler/Version: MSVC 2026
CMake Version:4.2.4


Hello all,

I am attempting to install Geant4 11.3.2. However, I am unable to finishing the build in Visual Studio 2026 due to error

-LNK1189 - library limit of 65535 objects exceeded** (For project G4processes).**

It is then unable to continue the build due to the missing .lib files. The subsequent errors are

-LNK1181 - cannot open input file ‘..\BuildProducts\Release\lib\G4processes.lib’

The same LNK1181 error continues for a variety of libraries.

I have included a screenshot of the CMake settings. As I am a new user, I am only allowed to include one media post but can provide additional information that may be useful.

Any help would be greatly appreciated, thank you.

Jon

Hello,

Myself and another user encountered a similiar problem 10 months ago:

Downgrading CMake fixed the issue for us. Maybe this will help you too!

Regards
Max