google / glog

C++ implementation of the Google logging module
http://google.github.io/glog/
BSD 3-Clause "New" or "Revised" License
6.99k stars 2.05k forks source link

namespace "google" has no member "InitGoogleLogging" #1061

Closed mesakas closed 7 months ago

mesakas commented 7 months ago

I use glog-0.6.0 in my program, but my vscode tell me:

namespace "google" has no member "InitGoogleLogging"

this is my code:

#include <glog/logging.h>

int main(int argc, char* argv[]) {
    google::InitGoogleLogging(argv[0]);
    return 0;
}

I don't know why have this error, and also I can't build my project of Cmake. no need use this function in my program in 0.6.0?

sergiud commented 7 months ago

This is an issue with your setup. Make sure to read and follow the documentation.

If this still does not help, I suggest you ask the question on Stackoverflow or the like.