[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: SV: [NOVICE] HelloWorld i C



Måske er det bare mig der husker forkert, men jeg tror
du skal kompilere med :
gcc -0 hello.c -o hello

hvor den første -0 er optimering, og den sidste -o er
output til filen hello.

For at køre den skriv:
./hello


> Når jeg laver "Det første C program" i "friheden til
> at vælge" går det 
> fint, indtil jeg i en xterm skriver "hello". Så
> siger linux:
> "bash: hello: command not found."
> 
> hvad gør jeg galt?
> 
> (jeg skrev det lille program i pico, gemte det som
> hello.c og compilede
> med kommandoen "gcc -o hello hello.c", hvorefter der
> dukkede en fil op i
> mit directory der hedder hello).
> 
> MVH Gunner


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:59 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *