#i have added the library include path in properties.json but it still gives the error
18 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
😭🙏
Technically this should be in #1013107104678162544, since this is for c.
Anyways, you should be able to link it by adding -Ipath/to/header into your compilation command
Replace the backslash with a forwardslash in the include and see if that fixes it
Oh yeah that too
i dont know what is that as i am a begginer
can you tell me what should i google to learn about this
this is my first project using libraries so idk anything
I think you need to modify tasks.json if you want to modify the compile command
what i do change in tasks.json
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe build active file",
"command": "C:\MinGW\bin\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
@near fulcrum pls help , i am so confused
i beg 🙏
Add the flag into the args array.
but what do i include ,
i want to learn how to do stuff like this and how to interact with liberaries
do you know any online resources that can teach me that
Your header file must be located somewhere on your computer. Find the path to that header file, and add it with the compiler flag I mentioned before. This tells the compiler where to find the header files you are using. I don't know any resources specifically. You could try searching for something like "use c++ libraries on vscode."