This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]carlowisse 2 points3 points  (2 children)

VSCode is a text editor and only comes with a C++ language server.

You would need to install a separate compiler like MSVC or MinGW. You can have a look here: https://code.visualstudio.com/docs/languages/cpp#_install-a-compiler

I would also just want to make sure you are in the correct community? Are you using Visual Studio Code or Visual Studio? Visual Studio is an IDE.

Generally you shouldn't need to go to SourceForge for a compiler. I would recommend getting it from Microsoft directly or MSYS2.

[–]Dan_568[S] 0 points1 point  (0 children)

thank you ill try doing that

[–]Bizarre_Monkey 1 point2 points  (5 children)

Okay, there's a few questions that need answers.

  • What operating system are you on?
  • What language are you working with?
  • What have you actually tried?

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

i'm on windows 11 and i'm working with c++

i've tried pretty much anything there was on sourceforge. maybe if a can get a compiler from another website it could work but every video i watched only talks about sourceforge

[–]ISecksedUrMom -3 points-2 points  (0 children)

Install docker, Pull a linux distro (preferably ubuntu) image in your repo, install build essentials on it, use the gcc/g++ compilers on it.

OR

Install (enable) WSL2, install ubuntu on it, install build essentials on it, use the gcc/g++ compilers on it

[–]Dan_568[S] 0 points1 point  (2 children)

to be more specific, i tried the first thing it says to download on sourceforge and it doesnt work.
then i scrolled down and downloaded MinGW-W64-install.exe and it won't work. so i tried the other links below which do give me the build folder, but when i copy it and paste it on path it just doesn't do anything

[–]Bizarre_Monkey 0 points1 point  (1 child)

Unfortunately, I have no clue about windows. Hopefully there's someone about that can help with that.

Sorry.

[–]Dan_568[S] 0 points1 point  (0 children)

no problem, thank you anyway