I am trying to create a sample project for myself using Plog library. according to its documentation, I must add its include folder to my include path. SO, I add these Lines to C/C++ configuration in my vs-code:
${default}
${workspaceFolder}/**
and this is my main function:
#include <iostream>
#include "plog/Log.h"
int main() {
plog::init(plog::debug, "log.txt");
std::string name;
std::cin >> name;
LOGD << "user entered name :" << name;
std::cout << name << std::endl;
return 0;
}
but when I run this code I am getting this error:
fatal error: plog/Logger.h: No such file or directory
which plog/Logger.h is referenced by log.h in the main function. plog folder which contains All headers of plog library is located in my project root folder. this is My folder structure:
root
|_plog
| |
| |_ all my header files *.h
|_main.cpp
Is there any more configuration which I missed? or did I make a mistake in any step?