I would like to run the exampleB1 from the command prompt in Visual Studio 2026, but I get the following:
C:\Users\Green_2124C\Geant4\geant4-v11.4.2\geant4-v11.4.2\examples\basic\B1\out\build\x64-Debug>.\exampleB1 run2.mac
Geant4 version Name: geant4-11-04-patch-02 [MT] (12-June-2026)
<< in Multi-threaded mode >>
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
: NIM A 835 (2016), 186-225
WWW : http://geant4.org/
<<< Reference Physics List QBBC
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W001
issued by : G4VAccumulable::SetName
Accumulable was already registered. Setting is ignored
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W001
issued by : G4VAccumulable::SetId
Accumulable was already registered. Setting is ignored
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
Accumulable registered as “”
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W001
issued by : G4VAccumulable::SetName
Accumulable was already registered. Setting is ignored
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W001
issued by : G4VAccumulable::SetId
Accumulable was already registered. Setting is ignored
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
Accumulable registered as “”
ERROR: G4VisManager::GetVerbosityValue: invalid verbosity “”
Available verbosity options:
Simple graded message scheme - digit or string (1st character defines):
0) quiet, // Nothing is printed.
- startup, // Startup and endup messages are printed…
- errors, // …and errors…
- warnings, // …and warnings…
- confirmations, // …and confirming messages…
- parameters, // …and parameters of scenes and views…
- all // …and everything available.
Current verbosity: warnings (3)
Visualization Manager instantiating with verbosity “warnings (3)”…
Visualization Manager initialising…
Registering graphics systems…
C:\Users\Green_2124C\Geant4\geant4-v11.4.2\geant4-v11.4.2\examples\basic\B1\out\build\x64-Debug>
What did I do wrong?
Geant4 Version: 11.4.2
Operating System: Windows 10 Pro
Compiler/Version: Microsoft Visual Studio 2026, Version 18.7.3
CMake Version: The one included in Visual Studio 2026, Version 18.7.3