I have Personal 9.0 I wrote the basic C program first.c then I did: gcc -o first first.c then I tried to run it by typing: first and it gives me a message: bash first no such command. so I tried: gcc first.c there was an a.out file in the directory then I typed: a.out and it gives me the same error message. Is there something I'm missing with the C compiler here? I'm new to SuSE and new to linux in general. I have done some C programming in Unix and this is confusing me tremendously. Any help would be greatly appreciated.
just put a ./ before the programmings name ./first or ./a.out you have to do that to execute anything that is not in you PATH var; do echo $PATH to see what i'm talking about; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- MartNet InterNet Services 99.9% pure http://www.martnet.com On Tue, 16 Dec 2003 KPP52@aol.com wrote:
I have Personal 9.0 I wrote the basic C program first.c then I did: gcc -o first first.c then I tried to run it by typing: first and it gives me a message: bash first no such command. so I tried: gcc first.c there was an a.out file in the directory then I typed: a.out and it gives me the same error message. Is there something I'm missing with the C compiler here? I'm new to SuSE and new to linux in general. I have done some C programming in Unix and this is confusing me tremendously. Any help would be greatly appreciated.
participants (2)
-
keo@home.martnet.com
-
KPP52@aol.com