emilk / loguru

A lightweight C++ logging library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loguru and glog conflict error

lfwin opened this issue · comments

commented

Hi, I use loguru in my project, and I installed Glog library at the same time.
#define LOGURU_REPLACE_GLOG 1 #include <loguru.hpp> ... LOG(1) << ...;
When I compiled my project, the error, 'error: ‘COMPACT_GOOGLE_LOG_1’ was not declared in this scope; did you mean ‘COMPACT_GOOGLE_LOG_0’?', occurs.