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
cmake_minimum_required(VERSION 3.5.0)
project(t VERSION 0.1.0 LANGUAGES C CXX)
find_package(absl REQUIRED)
add_executable(t main.cpp)
target_link_libraries(t PUBLIC absl_log_internal_message)
run cmake -DCMAKE_CXX_COMPILER=clang++ . in mingw64 terminal
run cmake --build .
it report:
ld: CMakeFiles/t.dir/main.cpp.obj:main.cpp:(.text$_ZN4absl12lts_2024072212log_internal10LogMessagelsEy[_ZN4absl12lts_2024072212log_internal10LogMessagelsEy]+0x19): undefined reference to `_ZN4absl12lts_2024072212log_internal10LogMessagelsIyTnNSt9ena
ble_ifIXntsr4absl16HasAbslStringifyIT_EE5valueEiE4typeELi0EEERS2_RKS5_
If I use clang++ in clang64 environment the program compiles fine. Probably, there are some difference in abseil-cpp package in gcc and clang based environment.
Description / Steps to reproduce the issue
main.cpp
:cmake -DCMAKE_CXX_COMPILER=clang++ .
inmingw64
terminalcmake --build .
it report:
btw: use
g++
build success.Expected behavior
build success.
Actual behavior
build failed
Verification
Windows Version
MINGW64_NT-10.0-19045
MINGW environments affected
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: