i was trying a simple main that calls a test function with a header file. and when running this message pops out
main.cpp:(.text+0xe): undefined reference to test(char)'
collect2: error: ld returned 1 exit status
Found out that in order to make this work i had to change the "${file}" with "${workspaceFolder}" in args of the tasks.json file. The first issue is that i don't have a tasks.json file, so i used the configure default build task that made it, but then, when i try to change the ${file} with ctrl space there are no option for other folders, even trying to manually insert workspaceFolder does not work`
tasks.json
just runs whatever shell command you throw at it, of course it can compile multiple files. (CMake could beneficial long-term, but it's not strictly necessary.) What doesn't support multifile programs is the "code runner" extension.