Closed linshigang closed 3 months ago
As the error message indicates, you did not integrate glog properly. Take a look at the documentation for how this needs to be done.
but ,in the cmake command ,it can pass. like this: cmake_minimum_required (VERSION 3.16) project (myproj VERSION 1.0)
find_package (glog 0.7.0 REQUIRED)
add_executable (myapp free_function.cpp) target_link_libraries (myapp glog::glog) ,but when i use g++ free_function.cpp -o myapp -lglog,it will occur these errors.
This is expected. You need either Bazel or CMake to consume glog. Anything else is not supported.
mycode: