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
What version of protobuf and what language are you using?
Version: v29.3
Language: C++
Compile self,and use abseil by internal module.
HEAD detached at v5.29.3
What did you see instead?
request.pb.obj : error LNK2001: "class std::array<char,7> const absl::lts_20240116::log_internal::kCharNull" (?kCharNull@log_internal@lts_20240116@absl@@3v?$array@D$06@std@@b)
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
1.Change the SubMessage Repeated Fields to a normal type
What version of protobuf and what language are you using?
Version: v29.3
Language: C++
Compile self,and use abseil by internal module.
HEAD detached at v5.29.3
cmake -S . -B build -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=ON -DABSL_PROPAGATE_CXX_STD=ON -Dprotobuf_ABSL_PROVIDER=module -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF cmake --build build --config Release --target install
What operating system (Linux, Windows, ...) and version?
Windows 11
What runtime / compiler are you using (e.g., python version or gcc version)
MSVC
Visual Studio 17 2022
What did you do?
Steps to reproduce the behavior:
1.Define a Message,file is request.proto
2.Write a main.cpp
3.Compile the program
What did you expect to see
Compile Success...
What did you see instead?
request.pb.obj : error LNK2001: "class std::array<char,7> const absl::lts_20240116::log_internal::kCharNull" (?kCharNull@log_internal@lts_20240116@absl@@3v?$array@D$06@std@@b)
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
1.Change the SubMessage Repeated Fields to a normal type
Compile then success...
2.Use dumpbin find the abseil_dll.lib and abseil_dll.lib,kCharNull founded in them.
The text was updated successfully, but these errors were encountered: