Question about ".o" files

This is a discussion on Question about ".o" files within the C++ Programming forums, part of the General Programming Boards category; Hi, I know ".o" files are object files..but that's about all I know.. So you can compile a ".cc" file ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    51

    Question about ".o" files

    Hi,

    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...

    Thanks
    Which is the master, which is the student?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    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-05-2002, 11:54 PM
  5. question about header files
    By ArseMan in forum C++ Programming
    Replies: 2
    Last Post: 09-21-2001, 02:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21