| Summary: | Cannot compile GEANT4 example with ROOT6 | ||
|---|---|---|---|
| Product: | Examples/Extended | Reporter: | Olivier Delaune <olivier.delaune> |
| Component: | analysis/AnaEx01 | Assignee: | Ivana.Hrivnacova |
| Status: | RESOLVED INVALID | ||
| Severity: | trivial | ||
| Priority: | P5 | ||
| Version: | 10.1 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Olivier Delaune
2015-10-25 22:52:06 CET
Hello,
As ROOT6 is built against c++11 standard, you need to build Geant4 libraries against this standard, too, as the application code should use compatible libraries.
Geant4 10.1 is built by default with c++98 standard, so you have to select c++1 via CMake option:
-DGEANT4_BUILD_CXXSTD=c++11
This option is then automatically propagated to the example build via
include(${Geant4_USE_FILE})
Best regards,
|