question

DekotaCouch-6454 avatar image
0 Votes"
DekotaCouch-6454 asked JeanineZhang-MSFT commented

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

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cooldadtx avatar image
0 Votes"
cooldadtx answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JeanineZhang-MSFT avatar image
0 Votes"
JeanineZhang-MSFT answered JeanineZhang-MSFT commented

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DekotaCouch-6454

May I know if you have got any chance to check my answer? I am glad to help if you have any other questions.

0 Votes 0 ·