Closed vkcarl closed 8 months ago
I assume you simply included <glog/logging>
without integrating glog using CMake or Bazel. However, such bare use of the library is not supported. You need to properly consume the library. Please see the documentation, e.g., for CMake how this is done.
I've updated the docs in 39df0545e7688309f49e17acd48aa64485ab0184 to clarify this.
A recent project requires glog. I installed glog according to the official installation manual and then compiled my project, but errors occurred. I just imported logging.h into the project:
#include<glog/logging. h>
. Since I don't know if there is something wrong with my project itself, I test glog/logging.h using official example programs. It didn't work and the same error occurred. I test the project in two environment: Ubuntu22.04 with g++11.4.0 and Ubuntu20.04 with g++ 9.4.0. Both of them didn't work. Anybody can help me, thanks.