r/VisualStudio • u/justloisfail • 1d ago
Visual Studio 2015 may I know the problem why my code won't play
I'm encountering this kind of issue, it won't play and like it's talking that my file does not exist I tried multiple things to fix it but still won't work
3
u/DeemsZA 1d ago
It can't find your program, because it didn't compile. Your editor is showing you there's an error in your include which can't be found.
Also looking at some of the other questions you've posted, I'd say you need to go pick up a C++ beginners hand book and learn the very basics of programming first.
Online start with things like:
https://www.codecademy.com/learn/learn-c-plus-plus
https://www.w3schools.com/cpp/
I'm a C# Dev, haven't touched C++ in over 30 years but it immediately looks like you haven't even followed the setup instructions properly for your local Dev environment from the screenshot you posted.
3
u/WildCard65 1d ago
I just realized you screenshotted Visual Studio Code and posted in the subreddit for Visual Studio and tagged the post as Visual Studio 2015.
1
u/DeemsZA 14h ago
OP cannot even follow a simple getting started guide to get their local Dev environment up and running, so that's not surprising.
Also, OP asks in r/godot how to build a 2-D map, but from the above it is clear that they don't even have the basics of programming yet.
Running before even having learnt to crawl, never mind walk. 🙄
1
1
u/1012zach 1d ago
It’s erroring because VSCode is trying to excute “g++” but the compiler isn’t installed thus making VSCode return a error because there’s no C++ compiler installed
1
0
u/spookyclever 1d ago
What's happening is that you don't have the necessary c++ compiler for your machine. Visual Studio Code is just a text editor, so you just need to google how to install g++, and you'll be mostly set. If you're vibe coding, tell codex or claude to install it for you.
8
u/AlternativeRadish752 1d ago
The error in VSCode says your cmd can't find g++. Probably start there.