[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc



On Sun, 9 Jan 2000 ray [at] skidrow.force9.co.uk wrote:

> I have just written me first program in C but I am having problems
> compiling it. I am in the same directory as my proggie but when I invoke
> gcc with:
>
> gcc hello.c
>
> nothing happens. I am new to both linux and programming so please be
> gentle with me.

Invoking just that will leave you with a file called a.out in the current
directory. Check if that is the case, try running with ./a.out, if yu want
to change the output of the compile filename invoke gcc with -o filename as
well as the name of the c source name. The lack of output would imply you
made no errors in the c program, well done!

Damion

--
Damion Yates - Senior Internet Operations Engineer - Internet Services
email: Damion.Yates [at] bbc.co.uk - phone: +44 1737 839510

Start your own FREE mailing list at

© 2000 Microsoft Corporation. All Rights Reserved