I am faced with the problem that VSCode does not see Eigen when I run the program in the debug mode, I get the following error
fatal error: 'eigen/Eigen/Dense' file not found
However, I have added the appropriate paths to task.json
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-std=c++20",
"-I /Users/%USERNAME%/C++Projects/dependencies/eigen/",
],
and to c_cpp_properties.json also
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/Users/%USERNAME%/C++Projects/dependencies/eigen/"
And of course when I compile directly through the terminal using
g++ filename.cpp -std=c++20 -I /Users/%USERNAME%/C++Projects/dependencies/eigen/ -o outputfile
Everything is going well
Well, does anyone know how I can solve this?
Lol Guys I just made a space between the "-I" and the "/Users/..." in the task.json