Include C++ Libary in VSCode on Windows
I am writing a CLI program in C++. Using VSCode and mingw64 for the development environment. I use g++-9 (Linux) or g++ (Windows) to build the binaries. My setup is a little different because I need to code from 2 different laptops. Laptop 1 is connected to the internet at home, and I have VS Code setup to connect to a Linux VPS over ssh. So if I build the code on that laptop, it builds under Linux. Laptop 2 is typically offline when I code on it, so I installed the C++ dev files (STL and compilers) locally on this laptop under Windows. When I build on this laptop it builds the program to a windows binary. I use github to host the code between the 2 laptops. When I'm finished working on a laptop, I commit and push the changes to github. Before I continue coding on the other laptop, I pull the changes and carry on developing. Everything has been working well, but now I want to include a library that will let me read data from a PDF file. The suggested library to use is Poppler. I figured I should download the latest Poppler archive, extract it, move its contents to an include/ folder that is inside my project folder. This way, I have the needed poppler files under both dev environments (Linux and Windows) and the poppler files will be included in the github repo. I checked my VSCode configuration and altered c_cpp_properties.json file to add the poppler folder to the include path (in fact, since I located the poppler files inside my workspace folder, it should already be able to see them without changing anything afaik?) When I try to #include poppler-document.h VSCode can't find it. it can see the base poppler folder which is in my project's include folder (the base folder is named poppler-24.05.0/) but it doesn't see the sub folders in there. It CAN see the files in poppler-24.05.0/ Inside poppler-24.05.0/ is a cpp/ folder, and in that folder are the .h and .cpp files you would expect to #include in your project.