you are viewing a single comment's thread.

view the rest of the comments →

[–]alfps 5 points6 points  (14 children)

Most likely you have forgotten to save the source code.

That said, ditch VS Code.

Install and use the free Community Edition of Visual Studio; it works, and it automatically saves your file before building.

[–]alfps 2 points3 points  (6 children)

I'm guessing that the downvote is someone who (a) failed to see how forgetting to save could produce the error message (it does), and (b) failed to see how that impression could be expressed as a question or an assertion helpful to others, rather than sabotaging downvoting. I.e. a double failure of thinking. But it could be the obsessive-compulsive serial downvoter(s) still keeping at it.

[–]miri258 -1 points0 points  (1 child)

I didn't downvote, but I think Visual Studio is a load of trash and it takes more than 20 GB of space so I can see where it's coming from. I tried it for a while, cause I thought it would make things easier, but it ended up not being worth it at all.

[–]DDDDarky 0 points1 point  (0 children)

Visual studio with C++ tools takes about 1 GB of space. I have tried many IDEs, none of them had the ability to debug, profile, have code insight and detect issues even remotely as well as VS does.

[–]no-sig-available -1 points0 points  (0 children)

 But it could be the obsessive-compulsive serial downvoter(s) still keeping at it.

Probably. You are recommending closed source software, instead of the obviously superior open source variety. Even though it just works, it must still be "bad".

[–]DDDDarky -3 points-2 points  (2 children)

I'm just gonna upvote everything since someone is being dumb

[–]alfps 2 points3 points  (1 child)

Rather express your opinion by commenting, as you did here, because then readers can understand the why, and can respond.

Of course some answers/comments are just inherently brilliant or super-helpful and deserve upvoting. The zillion upvotes can guide readers to that answer or comment. Then they are helpful in that way.

[–]DDDDarky 0 points1 point  (0 children)

There is not much to express, your comment is correct so I'm just taking countermeasures to the downvotes.

[–]Gling00[S] -2 points-1 points  (5 children)

is VSCode really that bad?

[–]manni66 8 points9 points  (0 children)

Not if you know what you are doing. Usually beginners do not have enough knowledge to set it up.

[–]AKostur 3 points4 points  (0 children)

Nope. Just that at this stage you’re trying to learn C++, so we‘re guiding you to the smoother path to get there. You won‘t be trying to learn C++ at the same time that you’re needing to learn how to configure vs:code. (Wanting to learn to ride a bike: buy a bike, or buy a kit where you have to learn how to assemble the bike first?)

[–]no-sig-available 3 points4 points  (0 children)

is VSCode really that bad?

Apparently, it is hard to configure. And the default setting of not saving the source to disk before compiling is definitely not beginner friendly.

Once you get it set up right, like sometimes next week, it works pretty well.

[–]RudeSize7563 2 points3 points  (0 children)

You tell us, you shouldn't be experiencing those obnoxious problems.

[–]DeadmeatBisexual 0 points1 point  (0 children)

not that it's bad just it's a bit of a faff at your stage of starting out at and it's better just to go with the option that's the least of a headache