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?



Pete Hatton wrote:

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.

Thanks Pete makes sense really -o = output. in this case send output to filename!

P.S ran my first C prog and i can now calculate the area of a circle from my terminal! woo hoo

next week ill start work on a first person shooter! not :)




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


Lynx friendly