解决方法:
在工程CMakeLists.txt中添加
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIR})
target_link_libraries(main student ${PROTOBUF_LIBRARY})
undefined reference to `google::protobuf::internal::VerifyVersion(int, int, char const*)‘ 错误解决方法
阅读 120
2022-04-21
解决方法:
在工程CMakeLists.txt中添加
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIR})
target_link_libraries(main student ${PROTOBUF_LIBRARY})
相关推荐
精彩评论(0)