my visual studio code is unable to compile c++ file

Pranav Kumar Mahto 5 Reputation points
2026-08-17T14:12:10.26+00:00

my visual studio code is giving too many error even though the code is right and mingw is installed in the system and unable to comile and run the code

Developer technologies | Visual Studio | Debugging

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 84,951 Reputation points
    2026-08-17T17:25:43.7166667+00:00

    did you follow the vscode setup?

    https://code.visualstudio.com/docs/cpp/config-mingw

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments

  2. Jay Pham (WICLOUD CORPORATION) 4,270 Reputation points Microsoft External Staff Moderator
    2026-08-18T00:11:25.4166667+00:00

    Hello @Pranav Kumar Mahto ,

    Could you please share the first few error messages shown in the Terminal or Problems panel?

    Also, please run g++`` ``--version in the VS Code terminal and share the output, along with your tasks.json file if available. This will help us determine whether the issue is related to the compiler installation, PATH, or the VS Code build configuration.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.