Results 1 to 3 of 3

Thread: Make file in c programming in include file from folder

  1. #1
    Join Date
    Oct 2013
    Beans
    9

    Make file in c programming in include file from folder

    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

  2. #2
    Join Date
    Sep 2013
    Beans
    51

    Re: Make file in c programming in include file from folder

    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.

  3. #3
    Join Date
    Aug 2013
    Beans
    34

    Re: Make file in c programming in include file from folder

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •