having problem with running multiple files in vs code

24 views Asked by At

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`

0

There are 0 answers