Robert Ryan wrote:
> in C++ is the source code (readable code) compiled by combining translation 
> units of libraries with the source code and the result is object code - using 
> g++
>        so, what is the result of using  ./a.out..........what is that result 
> called
>  bob

Ah.  I was wondering what the question actually was.

gcc generates object code.  (g++ is _basically_ the same thing as gcc 
anymore - a lot of magic happens behind the scenes).

ld links objects together to form a binary.

gcc typically uses ld behind the scenes to avoid using obscenely evil 
command-lines.


a.out, in your case, is the _default_ name leftover from ancient days 
that denotes the final binary that was output by the linker.

http://en.wikipedia.org/wiki/A.out

You may wish to use -o option in gcc to give your binaries a more 
suitable name.

http://www.hmug.org/man/1/gcc.php

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to