D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

RE: [LUG] GCC compilation?




then  GCC Example.c

produces an executable called a.out ?

You want the -o option which defaults normally to a.out so...

gcc -o foobar Example.c

Will produce an executable call foobar.

read the man pages for GCC but can't find any explanation.

I had a quick skin thought the man pages, and admit I didn't see the -o
option.

Pete Hatton
---------------------------------
E-mail:  pete@xxxxxxxxxxxxx
Webpage: http://www.monolight.org
---------------------------------


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly