2 Replies - 4822 Views - Last Post: 02 April 2010 - 12:30 PM Rate Topic: -----

#1 masoug  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 181
  • Joined: 30-December 09

What is the Difference Between an OUT File and a Object File

Posted 02 April 2010 - 12:14 PM

Hi,

While I was reading a C++ reference book, it talked about what the compiler does and stuff. But one thing that confused me was the idea for an Object file.

Technically, an object file is a machine-language representation of the C++ source code. So then how is it different from the executable itself?

And what is the difference between output (blah.o) files compared to object files?

THANKS! :helpsmilie:

-Masoug

Is This A Good Question/Topic? 0
  • +

Replies To: What is the Difference Between an OUT File and a Object File

#2 Martyn.Rae  Icon User is offline

  • The programming dinosaur
  • member icon

Reputation: 545
  • View blog
  • Posts: 1,420
  • Joined: 22-August 09

Re: What is the Difference Between an OUT File and a Object File

Posted 02 April 2010 - 12:25 PM

An object file is almost an executable but apart from the format being a little different, the major problem is the unresolved references to external data and routines. The linker takes object files and libraries and makes the executable.

Hope that helps you understand.
Was This Post Helpful? 1
  • +
  • -

#3 masoug  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 181
  • Joined: 30-December 09

Re: What is the Difference Between an OUT File and a Object File

Posted 02 April 2010 - 12:30 PM

Cool! Thanks!! :)
So its like another library...

-Masoug

This post has been edited by masoug: 02 April 2010 - 12:30 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1