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

error in including <glog/logging.h> after installing glog according to the official tutorial #1028

Closed vkcarl closed 8 months ago

vkcarl commented 8 months ago

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.

``` In file included from ast.h:19, from ast.cpp:8: /usr/local/include/glog/logging.h:100:20: error: variable ‘google::GLOG_EXPORT google::LogMessageTime’ has initializer but incomplete type 100 | struct GLOG_EXPORT LogMessageTime { | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:101:19: error: expected ‘}’ before ‘;’ token 101 | LogMessageTime(); | ^ /usr/local/include/glog/logging.h:100:35: note: to match this ‘{’ 100 | struct GLOG_EXPORT LogMessageTime { | ^ /usr/local/include/glog/logging.h:102:3: error: ‘explicit’ outside class declaration 102 | explicit LogMessageTime(std::chrono::system_clock::time_point now); | ^~~~~~~~ /usr/local/include/glog/logging.h:104:29: error: non-member function ‘const time_t& google::timestamp()’ cannot have cv-qualifier 104 | const time_t& timestamp() const { return timestamp_; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const time_t& google::timestamp()’: /usr/local/include/glog/logging.h:104:44: error: ‘timestamp_’ was not declared in this scope; did you mean ‘timestamp’? 104 | const time_t& timestamp() const { return timestamp_; } | ^~~~~~~~~~ | timestamp /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:105:20: error: non-member function ‘const int& google::sec()’ cannot have cv-qualifier 105 | const int& sec() const { return time_struct_.tm_sec; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::sec()’: /usr/local/include/glog/logging.h:105:35: error: ‘time_struct_’ was not declared in this scope 105 | const int& sec() const { return time_struct_.tm_sec; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:106:25: error: non-member function ‘const int32_t& google::usec()’ cannot have cv-qualifier 106 | const int32_t& usec() const { return usecs_; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int32_t& google::usec()’: /usr/local/include/glog/logging.h:106:40: error: ‘usecs_’ was not declared in this scope; did you mean ‘usec’? 106 | const int32_t& usec() const { return usecs_; } | ^~~~~~ | usec /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:107:21: error: non-member function ‘const int& google::min()’ cannot have cv-qualifier 107 | const int&(min)() const { return time_struct_.tm_min; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::min()’: /usr/local/include/glog/logging.h:107:36: error: ‘time_struct_’ was not declared in this scope 107 | const int&(min)() const { return time_struct_.tm_min; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:108:21: error: non-member function ‘const int& google::hour()’ cannot have cv-qualifier 108 | const int& hour() const { return time_struct_.tm_hour; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::hour()’: /usr/local/include/glog/logging.h:108:36: error: ‘time_struct_’ was not declared in this scope 108 | const int& hour() const { return time_struct_.tm_hour; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:109:20: error: non-member function ‘const int& google::day()’ cannot have cv-qualifier 109 | const int& day() const { return time_struct_.tm_mday; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::day()’: /usr/local/include/glog/logging.h:109:35: error: ‘time_struct_’ was not declared in this scope 109 | const int& day() const { return time_struct_.tm_mday; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:110:22: error: non-member function ‘const int& google::month()’ cannot have cv-qualifier 110 | const int& month() const { return time_struct_.tm_mon; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::month()’: /usr/local/include/glog/logging.h:110:37: error: ‘time_struct_’ was not declared in this scope 110 | const int& month() const { return time_struct_.tm_mon; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:111:21: error: non-member function ‘const int& google::year()’ cannot have cv-qualifier 111 | const int& year() const { return time_struct_.tm_year; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::year()’: /usr/local/include/glog/logging.h:111:36: error: ‘time_struct_’ was not declared in this scope 111 | const int& year() const { return time_struct_.tm_year; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:112:26: error: non-member function ‘const int& google::dayOfWeek()’ cannot have cv-qualifier 112 | const int& dayOfWeek() const { return time_struct_.tm_wday; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::dayOfWeek()’: /usr/local/include/glog/logging.h:112:41: error: ‘time_struct_’ was not declared in this scope 112 | const int& dayOfWeek() const { return time_struct_.tm_wday; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:113:26: error: non-member function ‘const int& google::dayInYear()’ cannot have cv-qualifier 113 | const int& dayInYear() const { return time_struct_.tm_yday; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::dayInYear()’: /usr/local/include/glog/logging.h:113:41: error: ‘time_struct_’ was not declared in this scope 113 | const int& dayInYear() const { return time_struct_.tm_yday; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:114:20: error: non-member function ‘const int& google::dst()’ cannot have cv-qualifier 114 | const int& dst() const { return time_struct_.tm_isdst; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const int& google::dst()’: /usr/local/include/glog/logging.h:114:35: error: ‘time_struct_’ was not declared in this scope 114 | const int& dst() const { return time_struct_.tm_isdst; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:115:28: error: non-member function ‘const long int& google::gmtoff()’ cannot have cv-qualifier 115 | const long int& gmtoff() const { return gmtoffset_; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const long int& google::gmtoff()’: /usr/local/include/glog/logging.h:115:43: error: ‘gmtoffset_’ was not declared in this scope; did you mean ‘gmtoff’? 115 | const long int& gmtoff() const { return gmtoffset_; } | ^~~~~~~~~~ | gmtoff /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:116:23: error: non-member function ‘const tm& google::tm()’ cannot have cv-qualifier 116 | const std::tm& tm() const { return time_struct_; } | ^~~~~ /usr/local/include/glog/logging.h: In function ‘const tm& google::tm()’: /usr/local/include/glog/logging.h:116:38: error: ‘time_struct_’ was not declared in this scope 116 | const std::tm& tm() const { return time_struct_; } | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:118:2: error: expected unqualified-id before ‘private’ 118 | private: | ^~~~~~~ /usr/local/include/glog/logging.h:133:33: error: ‘LogMessageTime’ does not name a type; did you mean ‘LogMessageInfo’? 133 | const LogMessageTime& time_) | ^~~~~~~~~~~~~~ | LogMessageInfo /usr/local/include/glog/logging.h:144:9: error: ‘LogMessageTime’ does not name a type; did you mean ‘LogMessageInfo’? 144 | const LogMessageTime& time; | ^~~~~~~~~~~~~~ | LogMessageInfo /usr/local/include/glog/logging.h: In constructor ‘LogMessageInfo::LogMessageInfo(const char*, const char*, const int&, std::thread::id, const int&)’: /usr/local/include/glog/logging.h:138:9: error: class ‘LogMessageInfo’ does not have any field named ‘time’ 138 | time(time_) {} | ^~~~ /usr/local/include/glog/logging.h: At global scope: /usr/local/include/glog/logging.h:150:1: error: expected declaration before ‘}’ token 150 | } // namespace google | ^ /usr/local/include/glog/logging.h:422:1: error: ‘GLOG_EXPORT’ does not name a type 422 | DECLARE_bool(timestamp_in_logfile_name); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:422:1: error: ‘fLB::FLAGS_timestamp_in_logfile_name’ has not been declared 422 | DECLARE_bool(timestamp_in_logfile_name); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:425:1: error: ‘GLOG_EXPORT’ does not name a type 425 | DECLARE_bool(logtostdout); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:425:1: error: ‘fLB::FLAGS_logtostdout’ has not been declared 425 | DECLARE_bool(logtostdout); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:428:1: error: ‘GLOG_EXPORT’ does not name a type 428 | DECLARE_bool(colorlogtostdout); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:428:1: error: ‘fLB::FLAGS_colorlogtostdout’ has not been declared 428 | DECLARE_bool(colorlogtostdout); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:431:1: error: ‘GLOG_EXPORT’ does not name a type 431 | DECLARE_bool(logtostderr); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:431:1: error: ‘fLB::FLAGS_logtostderr’ has not been declared 431 | DECLARE_bool(logtostderr); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:434:1: error: ‘GLOG_EXPORT’ does not name a type 434 | DECLARE_bool(alsologtostderr); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:434:1: error: ‘fLB::FLAGS_alsologtostderr’ has not been declared 434 | DECLARE_bool(alsologtostderr); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:437:1: error: ‘GLOG_EXPORT’ does not name a type 437 | DECLARE_bool(colorlogtostderr); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:437:1: error: ‘fLB::FLAGS_colorlogtostderr’ has not been declared 437 | DECLARE_bool(colorlogtostderr); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:441:1: error: ‘GLOG_EXPORT’ does not name a type 441 | DECLARE_int32(stderrthreshold); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:441:1: error: ‘fLI::FLAGS_stderrthreshold’ has not been declared 441 | DECLARE_int32(stderrthreshold); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:444:1: error: ‘GLOG_EXPORT’ does not name a type 444 | DECLARE_bool(log_file_header); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:444:1: error: ‘fLB::FLAGS_log_file_header’ has not been declared 444 | DECLARE_bool(log_file_header); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:447:1: error: ‘GLOG_EXPORT’ does not name a type 447 | DECLARE_bool(log_prefix); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:447:1: error: ‘fLB::FLAGS_log_prefix’ has not been declared 447 | DECLARE_bool(log_prefix); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:450:1: error: ‘GLOG_EXPORT’ does not name a type 450 | DECLARE_bool(log_year_in_prefix); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:450:1: error: ‘fLB::FLAGS_log_year_in_prefix’ has not been declared 450 | DECLARE_bool(log_year_in_prefix); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:454:1: error: ‘GLOG_EXPORT’ does not name a type 454 | DECLARE_int32(logbuflevel); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:454:1: error: ‘fLI::FLAGS_logbuflevel’ has not been declared 454 | DECLARE_int32(logbuflevel); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:457:1: error: ‘GLOG_EXPORT’ does not name a type 457 | DECLARE_int32(logbufsecs); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:457:1: error: ‘fLI::FLAGS_logbufsecs’ has not been declared 457 | DECLARE_int32(logbufsecs); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:461:1: error: ‘GLOG_EXPORT’ does not name a type 461 | DECLARE_int32(minloglevel); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:461:1: error: ‘fLI::FLAGS_minloglevel’ has not been declared 461 | DECLARE_int32(minloglevel); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:465:1: error: ‘GLOG_EXPORT’ does not name a type 465 | DECLARE_string(log_dir); | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:465:1: error: ‘fLS::FLAGS_log_dir’ has not been declared 465 | DECLARE_string(log_dir); | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:468:1: error: ‘GLOG_EXPORT’ does not name a type 468 | DECLARE_int32(logfile_mode); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:468:1: error: ‘fLI::FLAGS_logfile_mode’ has not been declared 468 | DECLARE_int32(logfile_mode); | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:472:1: error: ‘GLOG_EXPORT’ does not name a type 472 | DECLARE_string(log_link); | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:472:1: error: ‘fLS::FLAGS_log_link’ has not been declared 472 | DECLARE_string(log_link); | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:474:1: error: ‘GLOG_EXPORT’ does not name a type 474 | DECLARE_int32(v); // in vlog_is_on.cc | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:474:1: error: ‘fLI::FLAGS_v’ has not been declared 474 | DECLARE_int32(v); // in vlog_is_on.cc | ^~~~~~~~~~~~~ /usr/local/include/glog/logging.h:476:1: error: ‘GLOG_EXPORT’ does not name a type 476 | DECLARE_string(vmodule); // also in vlog_is_on.cc | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:476:1: error: ‘fLS::FLAGS_vmodule’ has not been declared 476 | DECLARE_string(vmodule); // also in vlog_is_on.cc | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:479:1: error: ‘GLOG_EXPORT’ does not name a type 479 | DECLARE_uint32(max_log_size); | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:479:1: error: ‘fLU::FLAGS_max_log_size’ has not been declared 479 | DECLARE_uint32(max_log_size); | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:482:1: error: ‘GLOG_EXPORT’ does not name a type 482 | DECLARE_bool(stop_logging_if_full_disk); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:482:1: error: ‘fLB::FLAGS_stop_logging_if_full_disk’ has not been declared 482 | DECLARE_bool(stop_logging_if_full_disk); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:485:1: error: ‘GLOG_EXPORT’ does not name a type 485 | DECLARE_bool(log_utc_time); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:485:1: error: ‘fLB::FLAGS_log_utc_time’ has not been declared 485 | DECLARE_bool(log_utc_time); | ^~~~~~~~~~~~ /usr/local/include/glog/logging.h:488:1: error: ‘GLOG_EXPORT’ does not name a type 488 | DECLARE_string(logmailer); | ^~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:488:1: error: ‘fLS::FLAGS_logmailer’ has not been declared 488 | DECLARE_string(logmailer); | ^~~~~~~~~~~~~~ In file included from /usr/local/include/glog/logging.h:619, from ast.h:19, from ast.cpp:8: /usr/local/include/glog/log_severity.h:84:69: error: two or more data types in declaration of ‘LogSeverityNames’ 84 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^ In file included from /usr/local/include/glog/logging.h:620, from ast.h:19, from ast.cpp:8: /usr/local/include/glog/vlog_is_on.h:100:78: error: two or more data types in declaration of ‘SetVLOGLevel’ 100 | RT int SetVLOGLevel(const char* module_pattern, int log_level); | ^ /usr/local/include/glog/vlog_is_on.h:122:64: error: two or more data types in declaration of ‘InitVLOG3__’ 122 | google::int32 verbose_level); | ^ In file included from ast.h:19, from ast.cpp:8: /usr/local/include/glog/logging.h:624:53: error: two or more data types in declaration of ‘InitGoogleLogging’ 624 | GLOG_EXPORT void InitGoogleLogging(const char* argv0); | ^ /usr/local/include/glog/logging.h:628:72: error: two or more data types in declaration of ‘InitGoogleLogging’ 628 | void* prefix_callback_data = nullptr); | ^ /usr/local/include/glog/logging.h:631:45: error: two or more data types in declaration of ‘IsGoogleLoggingInitialized’ 631 | GLOG_EXPORT bool IsGoogleLoggingInitialized(); | ^ /usr/local/include/glog/logging.h:634:40: error: two or more data types in declaration of ‘ShutdownGoogleLogging’ 634 | GLOG_EXPORT void ShutdownGoogleLogging(); | ^ /usr/local/include/glog/logging.h:643:70: error: two or more data types in declaration of ‘InstallFailureFunction’ 643 | GLOG_EXPORT void InstallFailureFunction(logging_fail_func_t fail_func); | ^ /usr/local/include/glog/logging.h:646:60: error: two or more data types in declaration of ‘EnableLogCleaner’ 646 | GLOG_EXPORT void EnableLogCleaner(unsigned int overdue_days); | ^ /usr/local/include/glog/logging.h:647:36: error: two or more data types in declaration of ‘DisableLogCleaner’ 647 | GLOG_EXPORT void DisableLogCleaner(); | ^ /usr/local/include/glog/logging.h:648:74: error: two or more data types in declaration of ‘SetApplicationFingerprint’ 648 | GLOG_EXPORT void SetApplicationFingerprint(const std::string& fingerprint); | ^ /usr/local/include/glog/logging.h:771:72: error: two or more data types in declaration of ‘MakeCheckOpValueString’ 771 | GLOG_EXPORT void MakeCheckOpValueString(std::ostream* os, const char& v); | ^ /usr/local/include/glog/logging.h:773:79: error: two or more data types in declaration of ‘MakeCheckOpValueString’ 773 | MakeCheckOpValueString(std::ostream* os, const signed char& v); | ^ /usr/local/include/glog/logging.h:776:63: error: two or more data types in declaration of ‘MakeCheckOpValueString’ 776 | const unsigned char& v); | ^ /usr/local/include/glog/logging.h:781:64: error: two or more data types in declaration of ‘MakeCheckOpValueString’ 781 | const std::nullptr_t& v); | ^ ...... In file included from ast.h:19, from ast.cpp:8: ast.cpp: In function ‘Vlab::SMT::Or* Vlab::SMT::TransformIteToOr(Vlab::SMT::Term_ptr, Vlab::SMT::Term_ptr, Vlab::SMT::Term_ptr)’: ast.cpp:2723:3: error: ‘InitVLOG3__’ is not a member of ‘google’ 2723 | DVLOG(VLOG_LEVEL) << "Parser converts 'ite' term to 'or' term"; | ^~~~~ ast.cpp:2723:3: error: ‘FLAGS_v’ was not declared in this scope 2723 | DVLOG(VLOG_LEVEL) << "Parser converts 'ite' term to 'or' term"; | ^~~~~ ast.cpp:2723:3: error: could not convert ‘({...})’ from ‘void’ to ‘bool’ 2723 | DVLOG(VLOG_LEVEL) << "Parser converts 'ite' term to 'or' term"; | ^ | | | void ast.cpp:2723:3: error: in argument to unary ! 2723 | DVLOG(VLOG_LEVEL) << "Parser converts 'ite' term to 'or' term"; | ^~~~~ ast.cpp:2723:3: error: ‘LogMessageVoidify’ is not a member of ‘google’; did you mean ‘LogMessageVoidify’? 2723 | DVLOG(VLOG_LEVEL) << "Parser converts 'ite' term to 'or' term"; | ^~~~~ /usr/local/include/glog/logging.h:1579:19: note: ‘LogMessageVoidify’ declared here 1579 | class GLOG_EXPORT LogMessageVoidify { | ^~~~~~~~~~~~~~~~~ In file included from ast.h:19, from ast.cpp:8: ast.cpp:2723:3: error: ‘LogMessage’ is not a member of ‘google’; did you mean ‘LogMessage’? 2723 | DVLOG(VLOG_LEVEL) << "Parser converts 'ite' term to 'or' term"; | ^~~~~ In file included from ast.h:19, from ast.cpp:8: /usr/local/include/glog/logging.h:1347:19: note: ‘LogMessage’ declared here 1347 | class GLOG_EXPORT LogMessage { | ^~~~~~~~~~ /usr/local/include/glog/logging.h: In instantiation of ‘std::string* MakeCheckOpString(const T1&, const T2&, const char*) [with T1 = int; T2 = int; std::string = std::__cxx11::basic_string]’: /usr/local/include/glog/logging.h:858:1: required from ‘std::string* Check_EQImpl(const T1&, const T2&, const char*) [with T1 = int; T2 = int; std::string = std::__cxx11::basic_string]’ /usr/local/include/glog/logging.h:858:1: required from here /usr/local/include/glog/logging.h:832:25: error: ‘MakeCheckOpValueString’ was not declared in this scope; did you mean ‘google::MakeCheckOpValueString’? 832 | MakeCheckOpValueString(comb.ForVar1(), v1); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ | google::MakeCheckOpValueString /usr/local/include/glog/logging.h:764:13: note: ‘google::MakeCheckOpValueString’ declared here 764 | inline void MakeCheckOpValueString(std::ostream* os, const T& v) { | ^~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/glog/logging.h:833:25: error: ‘MakeCheckOpValueString’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] 833 | MakeCheckOpValueString(comb.ForVar2(), v2); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ```
sergiud commented 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.

sergiud commented 8 months ago

I've updated the docs in 39df0545e7688309f49e17acd48aa64485ab0184 to clarify this.