-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
the cmake file is as following,
... add_subdirectory(${PROJECT_SOURCE_DIR}/3rdParty/abseil-cpp/) ... set(PROJECT_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/3rdParty/abseil-cpp...) ... set(MY_ABSL_LIBS absl::hash absl::inlined_vector absl::flat_hash_map absl::flat_hash_set absl::node_hash_map absl::node_hash_set ) ... target_link_libraries(... ${MY_ABSL_LIBS} )
Then, the following make errors are outputed,
/3rdParty/abseil-cpp/absl/time/internal/cctz/src/civil_time_detail.cc:15: /usr/include/c++/9/ctime:60:11: error: ‘::clock_t’ has not been declared 60 | using ::clock_t; | ^~~~~~~ /usr/include/c++/9/ctime:64:11: error: ‘::clock’ has not been declared 64 | using ::clock; | ^~~~~ /usr/include/c++/9/ctime:65:11: error: ‘::difftime’ has not been declared 65 | using ::difftime; | ^~~~~~~~ /usr/include/c++/9/ctime:66:11: error: ‘::mktime’ has not been declared 66 | using ::mktime; | ^~~~~~ /usr/include/c++/9/ctime:67:11: error: ‘::time’ has not been declared
I search the web, there is an answer of stackoverflow which says i need modify the name of times.h in abseil-cpp.