Newbie HELP!! Creating qnx-rtp x86 executables with cross co

Hi all.
I am working with qnx rtp on x86. I am succeding to compile and link on
native machine,
i.e directly on the machine qnx installed on.

I’ve installed QNX Windows SDK on my Windows 2000.
I am succeding to create static libraries with cross compiler and then link
them on native machine.
However I’d like to create an executables with cross compiler.

I am trying to create “Hello World” executable.
I am compiling it as:

qcc -Vgcc_ntox86 -g -IL:\qnxsdk\QNXsdk\target\qnx6\usr\include hello.c

It creates a.out file. But if I ftp it to qnx-rtp machine it does not work
there.
I am desperate.

ANY help is very appreciated.

Thanks.

Did you set the executable bits for the a.out on the target?
e.g. chmod u+x a.out

“Gio Bilkis” <gio@ilogix.co.il> schrieb im Newsbeitrag
news:ah3cd1$id$1@inn.qnx.com

Hi all.
I am working with qnx rtp on x86. I am succeding to compile and link on
native machine,
i.e directly on the machine qnx installed on.

I’ve installed QNX Windows SDK on my Windows 2000.
I am succeding to create static libraries with cross compiler and then
link
them on native machine.
However I’d like to create an executables with cross compiler.

I am trying to create “Hello World” executable.
I am compiling it as:

qcc -Vgcc_ntox86 -g -IL:\qnxsdk\QNXsdk\target\qnx6\usr\include hello.c

It creates a.out file. But if I ftp it to qnx-rtp machine it does not work
there.
I am desperate.

ANY help is very appreciated.

Thanks.

If you’re using the Micro$oft FTP client, be sure to put it into binary
mode. An executable transferred in ascii mode wouldn’t work.

Josh

Hi.

I do change mode of the a.out.
But when I run it the message I’ve got is:

sh: ./a.out: Can’t access shared library.


Thanks.


“Peter Weber” <pw@dolphin.de> wrote in message
news:ah3mth$84a$1@inn.qnx.com

Did you set the executable bits for the a.out on the target?
e.g. chmod u+x a.out

“Gio Bilkis” <> gio@ilogix.co.il> > schrieb im Newsbeitrag
news:ah3cd1$id$> 1@inn.qnx.com> …
Hi all.
I am working with qnx rtp on x86. I am succeding to compile and link on
native machine,
i.e directly on the machine qnx installed on.

I’ve installed QNX Windows SDK on my Windows 2000.
I am succeding to create static libraries with cross compiler and then
link
them on native machine.
However I’d like to create an executables with cross compiler.

I am trying to create “Hello World” executable.
I am compiling it as:

qcc -Vgcc_ntox86 -g -IL:\qnxsdk\QNXsdk\target\qnx6\usr\include hello.c

It creates a.out file. But if I ftp it to qnx-rtp machine it does not
work
there.
I am desperate.

ANY help is very appreciated.

Thanks.