Ive recently started learning c++ and honestly the thing im struggling with the most is build systems and project structure. i dont know how to use any build systems or which one to use and how i should structure stuff and im just so lost. I also dont really know how to properly include libraries and link them. Any pointers or resources on how to learn this?
#Build systems and project structure...
10 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Learn CMake, the most common build system for C++ and also open source software. They have a free book on their website: https://cmake.org/cmake/help/book/mastering-cmake/
There are several build systems to choose from, and CMake seems to be the most popular
But learn how to compile without a build system too, having this understanding helps a lot
how to properly include libraries and link them
What OS and compiler?
im on windows 11 and visual studio (so msvc)
Since you're using VS, you can basically ignore the build systems if you're just starting
It is better to use CMake instead of the project system that VS has by default, but there's nothing wrong with starting with that
For libraries there are several more or less cross-platform package maangers. Since you're using VS, microsoft's Vcpkg seems like a natural choice