PDA

View Full Version : Make file in c programming in include file from folder



Ravi_Chander_Jha
February 19th, 2014, 12:06 PM
Hello everyone, i am facing some trouble while including header and source file into my c codes.
The include directory structure is illustrated on http://csapp.cs.cmu.edu/public/code.html
My code resides in code/mycodes so please let me know the structure of makefile for codes in mycodes

dargaud2
February 19th, 2014, 03:00 PM
That's a whole bunch of different programs. Aren't makefiles provided ? If not you can compile simple programs with "gcc -o hello.exe hello.c". For anything more complex, checkout some simple makefile tutorials, there are plenty on google.

kangaba
February 19th, 2014, 09:22 PM
Take the time to learn a build system, be it Gnu Autotools or CMake (the latter is easier and more modern). It's hard, takes weeks or months, but you can't endlessly rely on copy-pasting random help solutions from the internet.