From Matthew to Torsten Becker and suse-linux-e@suse.com about Re: [SLE]...:
Torsten Becker wrote:
Urspr�ngliche Nachricht: Ok, I have an easy question. I compiled my hello.c prog.
#include <stdio.h>
int main(void) { printf("hello world \n"); return 0; }
gcc hello.c -o hello
Normaly, I should get an exe file! But when I start it, I get only, that it couldn't found a file. But it's in the dir.. I guess somthing ist wrong with my shell. (bash-2.03) Where is the problem? Thanks Torsten
______________________________________________________________________________ Ferienklick.de - Jede Menge Urlaub auf einen Blick! Hier geht's zu Ihrem Traumstrand: http://ferienklick.de/?PP=2-0-100-105-1
Look for a file called I believe a.out or something with out in the name. Thats the default output, to launch you need to do a ./a.out
It is the deault but here the program is called hello (-o hello) You should use ./hello
Matt
-- dieter