Cannot run program

Hi,

I am very new to QNX. We just set up a qnx environment with Neutrino and
tried to complie and link some programs. It complies OK by doing
“qcc -Vgcc_ntox86 hello.c -o hello”. However,
as we tried to ran it, it says hello not found. even with the default
output a.out has the same result “a.out not found”. The file exists
physically in the directory.

Does anyone know what might be missing or what is wrong with our setting?

Any information would be helpful.

Eri

Hi,

Sounds like the current working directory is not in your PATH environment variable.
You should be able to run your program as is, by putting a leading ‘./’ on the command line.
ex: ./hello

To add the current working directory to your PATH variable (so you wont have to use a leading ‘./’)
add the following to your ‘.profile’ file (/home//.profile):

export PATH=$PATH:.

Regards,

Joe

Eri Makimura <emakimura@aus.telusa.com> wrote:

Hi,

I am very new to QNX. We just set up a qnx environment with Neutrino and
tried to complie and link some programs. It complies OK by doing
“qcc -Vgcc_ntox86 hello.c -o hello”. However,
as we tried to ran it, it says hello not found. even with the default
output a.out has the same result “a.out not found”. The file exists
physically in the directory.

Does anyone know what might be missing or what is wrong with our setting?

Any information would be helpful.

Eri