Hi,
I am beginner of GNU and QNX6.
My problem is I cannot compile and run programs with gcc, even the simplest
“hello world”. The message displayed when I run the hello program:
/bin/sh: hello: not found
What is the problem and how to fix it? The system is QNX6 installed on
Win98.
Thanks for any help.
Steven Wang
Steven Wang wrote:
Hi,
I am beginner of GNU and QNX6.
My problem is I cannot compile and run programs with gcc, even the
simplest “hello world”. The message displayed when I run the hello
program:
/bin/sh: hello: not found
What is the problem and how to fix it? The system is QNX6 installed on
Win98.
Thanks for any help.
Steven Wang
Try typing ./hello. It may be a path problem. Also, gcc doesn’t
automatically make an executable file with the right name did you type
"gcc -o hello hello.c ? the "-o option will assign "hello"name to the
executable created by compiling and linking hello.c