I have added a git-submodule for spdlog, and when I try including it like so: #include "spdlog/include/spdlog/spdlog.h"
I get errors: spdlog/include/spdlog/spdlog.h:12:10: fatal error: spdlog/common.h: No such file or directory
#include <spdlog/common.h>
. Am I supposed to run any commands before using this library?
Asked
Active
Viewed 1,363 times
0

MaximV
- 155
- 11
-
How do you build your project? Probably you have to set the include path. – Thomas Sablik May 20 '20 at 17:30
-
@ThomasSablik I just write on the terminal `g++ main.cpp -obinaries` – MaximV May 20 '20 at 17:33
-
1You need to add the include path for sdplog, e.g. `g++ main.cpp -Ipath/to/sdplog -obinaries` – Thomas Sablik May 20 '20 at 17:34
-
Thanks @ThomasSablik, it works now! – MaximV May 20 '20 at 17:39