Skip to content
How to compile and run C program imported from GitHub
Profile icon

Hi, I've just imported my own C program from my GitHub repo, when I try to press the Run button, it asks me to configure run from files. What should I do for it to compile and run?

You are viewing a single comment. View All
Profile icon

Yes that is the normal error I always get as well! Copy the source code from a makefile I previously made and you'd be set.
Here is the link:

in this Makefile, I put src/*.c and src/*.h, you can adjust the file to fit your project.

Also, that error is still very confusing to me. I don't understand why the makefile doesn't compile, so just copy and paste the makefile I linked above to your Makefile and adjust the file to fit your needs

Also be aware that the Makefile I linked above has a few other ideals to it such like Memory checking with valgrind.

Ping me if you have any more questions or need help!