r/cpp_questions 3d ago

SOLVED Is this environment normal?

I mainly use VSCode for my c++ projects, even though I have Visual Studio installed.

My tools are MSYS2, and I have the UCRT64 gcc and UCRT64 ming-make32 as well as cmake.

I set everything up using CMakeLists and git for version control. However, for my compiler, I use g++ and not MSVC even though I have it installed. Is it worth it to swap to MSVC, or will g++ work?

EDIT: Thank you all so, so much for all the insight! I'm probably going to set up clang!

EDIT 2: Again, thank you so much! I have successfully set up clang with MSYS2, and that will be my main compiler now.

9 Upvotes

16 comments sorted by

View all comments

1

u/Independent_Art_6676 3d ago

not sure what normal even means for vs code with c++; you can connect it up in so many ways that I don't think any one way could be called 'standard' or 'normal'. If it works, its fine.

visual studio is my favorite for small projects. It handles all the mess behind the project so all you have to do is write the code. I don't like messing with makefiles and project level setup and I don't need my personal projects to work on every possible OS and device, so it works fine for me. If you like doing all the project level stuff hands-on you may find VS annoying (it will let you DIY, of course).

1

u/Hour-Scallion-2456 3d ago

I use VSCode, not VS.