How to make a c++ project from command prompt? [closed]

Note that this is referred to make a project from command prompt, not build or run it, by “make”, i mean, creating a .vcxproj file like Visual Studio does.

I am unable to use Visual Studio for now, this is why i’m asking to make a project through cmd, i tried gcc, but it doesn’t generate these project stuff.


GCC is just a compiler, rather than a full IDE like Visual Studio. It takes source code (and some binary libraries), and then outputs compiled executables or object files.

You can use a build system like CMake or Meson, which can make the building process easier for you and those who clone your code, and can even be integrated into Visual Studio. You can actually use CMake to convert projects into Visual Studio format.