You should refer to the Github readme for the repo as most repos tell you how to build the code. If you need help getting it to compile you should contact the owner of the repo via Github. Some repos can just be compiled directly in VS while others require that you run provided build scripts and/or have additional tools.
Github Project downloaded can't compile
Hello, I've downloaded a project from GitHub it has multiple .cpp and .hpp files. I think it's already supposed to be able to compile, but anyways I have no idea where to start or how to get this compiled and run. If anyone could help that would be greatly appreciated
Developer technologies | C++
2 answers
Sort by: Most helpful
-
-
Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
2021-06-03T03:21:22.853+00:00 Hi,
Most of github project has Readme .md file where developer write instructions for how to build using source.
I suggest you could check whether there is a .sln file in the folder. You could compile the .sln in visual studio directly. And you couldn't run the .cpp in the Visual Studio. You could run a single .cpp source file through Microsoft's C++ compiler on the command line (cl.exe), and then execute it.
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.