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.2.1
_Operating System:_macOS
_Compiler/Version:_Apple Clang 15.0.0
_CMake Version:_3.30.2
—I am getting the following error
“”
(base) bikashchauhan@Bikashs-MacBook-Air B1 % cmake .
– Configuring done (0.2s)
– Generating done (0.0s)
– Build files have been written to: /Users/bikashchauhan/GEANT/test_HandsOn1/B1
(base) bikashchauhan@Bikashs-MacBook-Air B1 % make -j 2 -f Makefile
/opt/homebrew/Cellar/cmake/3.30.2/bin/cmake -S/Users/bikashchauhan/GEANT/test_HandsOn1/B1 -B/Users/bikashchauhan/GEANT/test_HandsOn1/B1 --check-build-system CMakeFiles/exampleB1.dir/build.make CMakeFiles/exampleB1.dir/build
[ 25%] Building CXX object CMakeFiles/exampleB1.dir/exampleB1.cc.o
[ 25%] Building CXX object CMakeFiles/exampleB1.dir/src/ActionInitialization.cc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DG4LIB_BUILD_DLL -DG4UI_USE_QT -DG4VIS_USE_OPENGLQT -DG4VIS_USE_OPENGLX -DG4VIS_USE_QT3D -DG4VIS_USE_TOOLSSG_QT_GLES -DG4VIS_USE_TOOLSSG_QT_ZB -DG4VIS_USE_TOOLSSG_X11_GLES -DPTL_BUILD_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -I/Users/bikashchauhan/GEANT/test_HandsOn1/B1/include -isystem /Users/bikashchauhan/GEANT/install/include/Geant4 -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include -iframework /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks -isystem /opt/homebrew/anaconda3/include/qt -isystem /opt/homebrew/anaconda3/include/qt/QtGui -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/homebrew/anaconda3/include/qt/QtCore -isystem /opt/homebrew/anaconda3/./mkspecs/macx-clang -isystem /opt/homebrew/anaconda3/include/qt/QtOpenGL -isystem /opt/homebrew/anaconda3/include/qt/QtWidgets -isystem /usr/X11R6/include -isystem /opt/homebrew/include -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -MD -MT CMakeFiles/exampleB1.dir/src/ActionInitialization.cc.o -MF CMakeFiles/exampleB1.dir/src/ActionInitialization.cc.o.d -o CMakeFiles/exampleB1.dir/src/ActionInitialization.cc.o -c /Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DG4LIB_BUILD_DLL -DG4UI_USE_QT -DG4VIS_USE_OPENGLQT -DG4VIS_USE_OPENGLX -DG4VIS_USE_QT3D -DG4VIS_USE_TOOLSSG_QT_GLES -DG4VIS_USE_TOOLSSG_QT_ZB -DG4VIS_USE_TOOLSSG_X11_GLES -DPTL_BUILD_DLL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -I/Users/bikashchauhan/GEANT/test_HandsOn1/B1/include -isystem /Users/bikashchauhan/GEANT/install/include/Geant4 -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include -iframework /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks -isystem /opt/homebrew/anaconda3/include/qt -isystem /opt/homebrew/anaconda3/include/qt/QtGui -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/homebrew/anaconda3/include/qt/QtCore -isystem /opt/homebrew/anaconda3/./mkspecs/macx-clang -isystem /opt/homebrew/anaconda3/include/qt/QtOpenGL -isystem /opt/homebrew/anaconda3/include/qt/QtWidgets -isystem /usr/X11R6/include -isystem /opt/homebrew/include -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -fPIC -MD -MT CMakeFiles/exampleB1.dir/exampleB1.cc.o -MF CMakeFiles/exampleB1.dir/exampleB1.cc.o.d -o CMakeFiles/exampleB1.dir/exampleB1.cc.o -c /Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.cc
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.cc:30:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/DetectorConstruction.hh:33:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4VUserDetectorConstruction.hh:41:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh:74:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex:236:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:321:In file included from 5/Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc::31:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/PrimaryGeneratorAction.hh: 34:
In file included from error: /Users/bikashchauhan/GEANT/install/include/Geant4/G4ParticleGun.hh:54 tried including <math.h> but didn’t find libc++'s <math.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.:
In file included from
/Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh:74:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex# error tried including <math.h> but didn’t find libc++'s <math.h> header. :
236:
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:321:5: error: tried including <math.h> but didn’t find libc++'s <math.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <math.h> but didn’t find libc++'s <math.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:588:17: error: expected unqualified-id
return std::isnan(__lcpp_x);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:588:17: error: expected unqualified-id
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/math.h:166 return std::isnan(__lcpp_x);:
5: ^
note: expanded from macro ‘isnan’
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x))
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/math.h:166:5: note: expanded from macro ‘isnan’
( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x))
^
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc:31:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/PrimaryGeneratorAction.hhIn file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.cc:30:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/DetectorConstruction.hh:33:
In file included from :34:
/Users/bikashchauhan/GEANT/install/include/Geant4/G4VUserDetectorConstruction.hhIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4ParticleGun.hh41::
54In file included from :
/Users/bikashchauhan/GEANT/install/include/Geant4/globals.hhIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh35::
35In file included from :
/Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hhIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh35::
35In file included from :
/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hhIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh74::
74In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complexIn file included from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex236::
236:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath608::60817::17 : error: error: expected unqualified-idexpected unqualified-id
return std::isinf(__lcpp_x);
^
return std::isinf(__lcpp_x);
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/math.h: ^
161:5:/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/math.h :161:note: 5:expanded from macro ‘isinf’
note: expanded from macro ‘isinf’
( sizeof(x) == sizeof(float) ? __inline_isinff((float)(x))
^
( sizeof(x) == sizeof(float) ? __inline_isinff((float)(x))
^
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.cc:30:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/DetectorConstruction.hh:33:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4VUserDetectorConstruction.hh:41:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc:In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:3135:
:
In file included from In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/PrimaryGeneratorAction.hh/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh::3474:
:
In file included from In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ParticleGun.hh/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex::54236:
:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath::35724:
:In file included from 15/Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:: 35:
In file included from error: /Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh:74no template named ‘numeric_limits’:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex:236:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:724 return -numeric_limits<_Tp>::infinity();:
15: ^
error: no template named ‘numeric_limits’
return -numeric_limits<_Tp>::infinity();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:728:14: error: no template named ‘numeric_limits’/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:
728:14: error: return numeric_limits<_Tp>::infinity();
no template named ‘numeric_limits’ ^
return numeric_limits<_Tp>::infinity();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:731:14: error: no template named ‘numeric_limits’
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:731:14: return numeric_limits<_Tp>::quiet_NaN();
^
error: no template named ‘numeric_limits’
return numeric_limits<_Tp>::quiet_NaN();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:735:19: error: no template named ‘numeric_limits’
while (__x >= numeric_limits<_Tp>::radix) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:735:19: error: no template named ‘numeric_limits’
while (__x >= numeric_limits<_Tp>::radix) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:736:14: error: no template named ‘numeric_limits’
__x /= numeric_limits<_Tp>::radix;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:736:14: error: no template named ‘numeric_limits’
__x /= numeric_limits<_Tp>::radix;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:759:14: error: no template named ‘numeric_limits’
return numeric_limits<_Tp>::quiet_NaN();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:759:14: error: no template named ‘numeric_limits’
return numeric_limits<_Tp>::quiet_NaN();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:763:16: error: no template named ‘numeric_limits’
__mult = numeric_limits<_Tp>::radix;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:763:16: error: no template named ‘numeric_limits’
__mult = numeric_limits<_Tp>::radix;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:768:17: error: no template named ‘numeric_limits’
__mult /= numeric_limits<_Tp>::radix;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:768:17: error: no template named ‘numeric_limits’
__mult /= numeric_limits<_Tp>::radix;
^
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.cc:30:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/DetectorConstruction.hh:33:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4VUserDetectorConstruction.hh:41:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh:74:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex:236:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:834:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:425:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/add_pointer.h:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstddef::3146:
:In file included from 5/Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/PrimaryGeneratorAction.hh:: 34:
In file included from error: /Users/bikashchauhan/GEANT/install/include/Geant4/G4ParticleGun.hh:54 tried including <stddef.h> but didn’t find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.:
In file included from
/Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh:74:
error tried including <stddef.h> but didn’t find libc++'s <stddef.h> header. \
^
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex:236:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:834:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:425:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/add_pointer.h:17:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstddef:46:5: error: tried including <stddef.h> but didn’t find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <stddef.h> but didn’t find libc++'s <stddef.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named ‘nullptr_t’ in the global namespace
using ::nullptr_t;
^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named ‘nullptr_t’ in the global namespace
using ::nullptr_t;
^
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc:31:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/PrimaryGeneratorAction.hh:34:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ParticleGun.hh:54:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35In file included from :
/Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.ccIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh30::
74In file included from :
/Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/DetectorConstruction.hhIn file included from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex33::
236In file included from :
/Users/bikashchauhan/GEANT/install/include/Geant4/G4VUserDetectorConstruction.hhIn file included from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:834:
In file included from 41:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:456:35:
:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_compound.hIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh14::
35In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_fundamental.hIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh14::
74:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h::23626:
:In file included from 28/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:: 834:
In file included from error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:456use of undeclared identifier ‘nullptr_t’; did you mean ‘nullptr’?:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_compound.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_fundamental.h:14:
struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h ^:
26:28: error: use of undeclared identifier ‘nullptr_t’; did you mean ‘nullptr’?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
error: ^
template argument for template type parameter must be a type
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:26:28: struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
error: ^
template argument for template type parameter must be a type
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:23:17: struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
^~~~~~~~~
note: template parameter is declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.htemplate :
23: ^17
: note: template parameter is declared here
template
^
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.ccIn file included from :/Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc30::
31In file included from :
/Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/DetectorConstruction.hhIn file included from :/Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/PrimaryGeneratorAction.hh33::
34In file included from :
/Users/bikashchauhan/GEANT/install/include/Geant4/G4VUserDetectorConstruction.hhIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4ParticleGun.hh41::
54In file included from :
/Users/bikashchauhan/GEANT/install/include/Geant4/globals.hhIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh35:35:
In file included from :
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh:74:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh:
:In file included from 74/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex:
:In file included from 236/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex:
:In file included from 236/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:
:In file included from 834/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmath:
:In file included from 834/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:
:In file included from 508/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/type_traits:
:In file included from 508/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:
:In file included from 14/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:
:14/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdint:
:149/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdint::5149:: 5: error: error: tried including <stdint.h> but didn’t find libc++'s <stdint.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. tried including <stdint.h> but didn’t find libc++'s <stdint.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <stdint.h> but didn’t find libc++'s <stdint.h> header. # error tried including <stdint.h> but didn’t find libc++'s <stdint.h> header. \
^ ^
In file included from In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/exampleB1.cc/Users/bikashchauhan/GEANT/test_HandsOn1/B1/src/ActionInitialization.cc::3031:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/DetectorConstruction.hh:33:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4VUserDetectorConstruction.hh:41:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh:35:
In file included from /Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh:35:
:
In file included from /Users/bikashchauhan/GEANT/test_HandsOn1/B1/include/PrimaryGeneratorAction.hhIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh34::
74In file included from :
/Users/bikashchauhan/GEANT/install/include/Geant4/G4ParticleGun.hhIn file included from :54:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complexIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/globals.hh238::
35In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/stdexceptIn file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4ios.hh48::
35/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdlib:90::
5In file included from :/Users/bikashchauhan/GEANT/install/include/Geant4/G4Types.hh :74:
error: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex: tried including <stdlib.h> but didn’t find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.238:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/stdexcept:48:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdlib:90:5: # error tried including <stdlib.h> but didn’t find libc++'s <stdlib.h> header.
error: ^
tried including <stdlib.h> but didn’t find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case.
error tried including <stdlib.h> but didn’t find libc++'s <stdlib.h> header. \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdlib:132:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/stdlib.h:132:6:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cstdlib:132:9: error: target of using declaration conflicts with declaration already in scope
using ::abs _LIBCPP_USING_IF_EXISTS;
^
note: target of using declaration/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/stdlib.h
:132:6: int abs(int) __pure2;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++note: /v1/cmath:target of using declaration354:
1: note: int abs(int) __pure2;conflicting declaration
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/cmathusing ::abs _LIBCPP_USING_IF_EXISTS;:
354:^1
: note: conflicting declaration
using ::abs _LIBCPP_USING_IF_EXISTS;
^
“”"