我的dll有2个入口点,我希望使用
EasyLogging++
两个条目。。
#pragma once
#ifndef EASYLOGGING_LOADER_H
#define EASYLOGGING_LOADER_H
#include "easylogging++.h"
INITIALIZE_EASYLOGGINGPP
#endif
但是包含了这个文件,我得到如下错误:
Error LNK2005 "class std::shared_ptr<class el::base::Storage> el::base::elStorage" (?elStorage@base@el@@3V?$shared_ptr@VStorage@base@el@@@std@@A) already defined in gInput.obj
有什么办法解决这个问题吗?谢谢
另外,我用的是
Easylogging++ v9.96.4