About 2,800,000 results
Open links in new tab
  1. How do I set up Visual Studio Code to compile C++ code?

    Microsoft's Visual Studio Code editor is quite nice, but it has no default support for building C++ projects. How do I configure it to do this?

  2. How to compile c++ file in visual studio? - Stack Overflow

    Oct 30, 2013 · The problem is, Visual Studio don't really know, what to do with your .cpp file. Is it a program? Try the following: File | New project Visual C++ | Win32 | Win32 Project Select a name and …

  3. How to compile and run C++ code in VS Code easily?

    Aug 21, 2021 · 5 I am working with C++ and I am using Mingw as my compiler. So far I have been using the terminal at the bottom of VS Code to compile and run like this: g++ program.cpp then doing …

  4. Visual Studio Code will not build C++ program with multiple .cpp …

    Dec 6, 2017 · 30 This is the tasks.json file for Visual Studio Code for Linux distributions, to compile multiple cpp files:

  5. How to compile multiple .cpp files in a folder using visual studio code ...

    Nov 10, 2025 · How to compile multiple .cpp files in a folder using visual studio code with MinGW? Asked 6 days ago Modified 4 days ago Viewed 84 times

  6. c++ - How do I compile a Visual Studio project from the command …

    172 I'm scripting the checkout, build, distribution, test, and commit cycle for a large C++ solution that is using Monotone, CMake, Visual Studio Express 2008, and custom tests. All of the other parts seem …

  7. How to build and run C++ code in Visual Studio Code?

    Oct 12, 2016 · 9 You can configure multiple tasks in Visual Studio Code, one of which will allow you to build your executable, and the other will run your executable. Optionally, you could also look into …

  8. c++ - How to properly use CMake from Visual Studio Code ... - Stack ...

    Apr 18, 2025 · I'm having trouble getting CMake to compile a basic project in Visual Studio Code. Here's the error I get:

  9. How to compile and run a c++ source file in visual studio code

    Oct 10, 2019 · But I want to use Visual Studio Code to implement algorithms in C++ for competitive programming. I want to be able to compile a program, and run it all in one go, if there aren't any errors.

  10. Generate C/C++ DLL using visual studio code - Stack Overflow

    Apr 11, 2023 · Is it possible to use Visual Studio Code to generate a DLL file? In Visual Studio Community Edition, there is a wizard that provides options for setting up a project to output a DLL.