Problems compiling PxLoadImage

Hi,

I am compiling the example program on QNXs site to display an image on
screen.

Source at:

http://qdn.qnx.com/support/docs/photon_2.0_en/lib_ref/px/pxloadimage.html

I am getting the following errors:

test.c: In function main': test.c:59: warning: assignment from incompatible pointer type test.c:60: warning: assignment from incompatible pointer type test.c:61: warning: assignment from incompatible pointer type test.c:62: warning: assignment from incompatible pointer type test.c:30: warning: return type of main’ is not int' /tmp/AAA324407_cc.o: In function main’:
/tmp/AAA324407_cc.o(.text+0x116): undefined reference to `PxLoadImage’
cc: /usr/ntox86/bin/ld error 1

The assignment warnings are the function assignments to the PxMethods_t
struct. Apparently it isn’t finding PxImage.h correctly. Is there some flag
I need to give the compiler or some PATH to set for this to work?

Thanks.

Sachin

Try this one, works fine with me.

Sachin Agarwal wrote:

Hi,

I am compiling the example program on QNXs site to display an image on
screen.

Source at:

http://qdn.qnx.com/support/docs/photon_2.0_en/lib_ref/px/pxloadimage.html

I am getting the following errors:

test.c: In function main': test.c:59: warning: assignment from incompatible pointer type test.c:60: warning: assignment from incompatible pointer type test.c:61: warning: assignment from incompatible pointer type test.c:62: warning: assignment from incompatible pointer type test.c:30: warning: return type of main’ is not int' /tmp/AAA324407_cc.o: In function main’:
/tmp/AAA324407_cc.o(.text+0x116): undefined reference to `PxLoadImage’
cc: /usr/ntox86/bin/ld error 1

The assignment warnings are the function assignments to the PxMethods_t
struct. Apparently it isn’t finding PxImage.h correctly. Is there some flag
I need to give the compiler or some PATH to set for this to work?

Thanks.

Sachin