"fatal error: 'chrono' file not found" when compiling C++ project based on CMake -


do know error message means , should now?

vpn-global-dhcp3-252:build dolyn$ make  scanning dependencies of target mdatom  [ 10%] building cxx object cmakefiles/mdatom.dir/src/main.cpp.o /users/dolyn/sources/src/main.cpp:124:11: fatal error:    'chrono' file not found #include      <chrono>             high resolutio    timings                     ^ 1 error generated. 

i have no idea have now.

the build error probably means source file includes c++11 header (<chrono>) compiling without support c++11. given compiler supports c++11, need activate using following line in cmakelists.txt file:

set(cmake_cxx_flags "${cmake_cxx_flags} -std=c++11") 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -