Results 1 to 2 of 2

Thread: using GCC for multiple files

  1. #1
    Join Date
    Feb 2012

    Question using GCC for multiple files

    I'm a beginner to using gcc in command line
    I have a project with multiple .h and .cpp files.
    I want to compile this project and add #defines in the compilation command in gcc.

    some of the .h files are paired with .cpp files.
    some are just standalone.

    each .h file has its own #define that needs to be set

    how to do this ??

  2. #2
    Join Date
    Jan 2010
    Kolkata India

    Re: using GCC for multiple files

    this is where 'make' utility comes into picture and makes life easier.

    the documentation is a bit fat but worth a read to master this great utility.
    “Progress is made by lazy men looking for easier ways to do things”
    — Robert A. Heinlein

Tags for this Thread


Posting Permissions

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