Thread: Question about ".o" files

  1. #1
    Registered User
    Join Date
    Mar 2002

    Question about ".o" files


    I know ".o" files are object files..but that's about all I know..

    So you can compile a ".cc" file and turn it into a ".o" file? then link a bunch of ".o" files to make a "exe" file?

    correct me if I'm wrong...

    Which is the master, which is the student?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    File names tend to be compiler/OS specific, but the concept is correct. The compiler turns source into relocatable object, the linker locates the relocatable object to form an executable, resolving any other external references, (libraries for example), as it does so.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quick question on reading files in C
    By TaiL in forum C Programming
    Replies: 12
    Last Post: 10-05-2008, 09:48 PM
  2. Replies: 26
    Last Post: 06-15-2005, 02:38 PM
  3. input/output files question
    By ssjnamek in forum C++ Programming
    Replies: 2
    Last Post: 04-22-2005, 12:38 PM
  4. Using files: Wacked Question
    By Denethor2000 in forum C++ Programming
    Replies: 2
    Last Post: 04-06-2002, 12:54 AM
  5. question about header files
    By ArseMan in forum C++ Programming
    Replies: 2
    Last Post: 09-21-2001, 02:33 AM