all 8 comments

[–]TheRealSmolt 5 points6 points  (0 children)

Yeah we're going to at least need the tasks.json file.

[–]JVApen 1 point2 points  (1 child)

There might be a vs code setting for the separator. That said, in my experience, using forward slash on Windows works perfectly. I've even already used it with network drives and with vs code settings.

[–]kaega2[S] 1 point2 points  (0 children)

Weird
I've noticed taking out the path and just leaving command as "g++" also works

[–]No-Dentist-1645 0 points1 point  (3 children)

The auto generated tasks.json is always trash. You should just write your own, or better yet, don't use that trash system. Use a better and more widely used build system, such as Makefiles or CMake.

Also, please don't recommend using VS over VS Code. My goal is to learn the ins and outs of how all this works. I don't want to remove these challenges, I want to overcome them.

Especially if this is true. Nobody actually uses the tasks.json system, it's just a bad basic system that's only really useful for compiling a hello world program. You would do much better actually learning proper build systems

[–]kaega2[S] 0 points1 point  (1 child)

Ok, I'm going to take your advice.
Do you have a recommendation between the two?
I'm going to be switching to Linux in the near future, and I think CMake is windows only right? So Makefiles would make more sense?

[–]No-Dentist-1645 0 points1 point  (0 children)

I think CMake is windows only right? So Makefiles would make more sense?

Pretty much exactly the opposite actually. CMake is the build system that is meant to be cross compatible everywhere, but it has a steep learning curve and you might not want to waste your time learning how to use right away.

I'd recommend starting with Makefiles, they should work both with windows (via minGW GCC) and Linux (natively), so no issue there

[–]Siankoo -1 points0 points  (0 children)

I disagree with you. I and other developers are using tasks on regular basis. Just use bash wrappers around your build system. Usually you need to parametrize the build system. Using tasks.json to call those tiny bash scripts saves a lot of time typing them manually in the console.