I'm trying to compile my app using vs code and g++ on windows 11 without having to type all the files manually in the task.json file, but everytime I try to compile I get a fatal error :
cc1plus.exe: fatal error c:\..\src\*.cpp invalid argument
I tried replacing /src/*.cpp for \\src\cpp or /src/**.cpp and pretty much all the possible variants.
I have also tried to change the type from cppbuild to shell.
None of this worked.
Note that if I type all the files manually vs code is able to compile the app.
Here's the arguments I'm using.
"args": [
"-fdiagnostics-color=always",
"-g",
"${workspaceFolder}/src/*.cpp",
"-o",
"${workspaceFolder}/bin/app.exe"
],
**/*.cpp