Github Project downloaded can't compile

Dekota Couch 1 Reputation point
2021-06-02T13:06:14.743+00:00

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++
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2021-06-02T14:03:17.187+00:00

    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.

    0 comments No comments

  2. 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.