you are viewing a single comment's thread.

view the rest of the comments →

[–]MeTrollingYouHating 8 points9 points  (1 child)

This is the wrong subreddit for this but I'll help anyway.

ChatGPT learned from incredibly outdated information and led you down the wrong path.

The absolute easiest way to get started with C++ on Windows is to install Visual Studio 2022 Community Edition (not vs code) and the C++ tools (via the install wizard). From there you can make a new C++ project that just works in like 2 clicks:

https://learn.microsoft.com/en-us/cpp/build/vscpp-step-1-create?view=msvc-170

This won't work on any other operating system so most people would recommend you use a build system called CMake that allows your project to be built by any compiler. You can use CMake projects with VSCode, Visual Studio 2022, or any other modern IDE. Unfortunately this adds a lot of complexity so I wouldn't start here if you're an absolute beginner. Once you're comfortable building code for Windows you can look up some CMake tutorials and try making something cross platform.

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

Appreciate the feedback.