You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #1300 on November 03, 2022 13:23.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
Beta Was this translation helpful? Give feedback.
All reactions