Compiling

Discussion in 'C' started by Vip3r, Sep 16, 2008.

  1. Vip3r

    Vip3r New Member

    Joined:
    Aug 5, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Dont have one
    Location:
    New jersey
    Hi, how do you compile something when it comes in multiple files. Like it has a bunch of other folders and in them it has source files, and header files etc... How do you compile all of them together. The whole thing is a IRC bot, with lots of functions, but i just dont know how to compile all of the things together. Please help. Thanks.
     
  2. oogabooga

    oogabooga New Member

    Joined:
    Jan 9, 2008
    Messages:
    115
    Likes Received:
    11
    Trophy Points:
    0
    Multi-file compilation is achieved by compiling each code file separately into "object" files.
    The object files (and subroutines from library files) are then linked into a complete
    executable.

    Usually a source distribution will contain a "makefile". It may also contain the project file
    for the IDE it was created in. Either of those should help you out.

    Put up the link to the source code if you want more specific help.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice