This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc


"Arash Farmand" <arashfarmand at hotmail dot com> writes:

> #include<stdio.h>
>
> int main(void)
> {
>    printf("Hello world!");

You'd better use "Hello world!\n", because the IO are usually buffered
by your system, and will not appear until your process outputs a '\n'. 

But  the solution is  to call  ./a.out, or  to add  '.' to  your $PATH
environment variable :

PATH=${PATH}:. 
export PATH

using  bash. (Type  it once  in every  new shell,  or put  it  in your
~/.bashrc file.)

> 
>    return(0);
> }

BTW, forget about kwrite : you should use Emacs or vi ;-)

-- 
Matthieu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]