Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - PxImage linking error: (5 Items)
   
PxImage linking error  
Hi everyone,

On the lastest QNX 4.25 build:

I have compiled a source-code file using PxImage lib.
I have #include <photon/PxImage.h> in the source file.
I have full options for linking libraries: -l Aplib -l phrtlib -l phexlib -l phcontrib -l photon_s -l phrender_s

But, when linking, it show error: 
warning(1028): _PxImageFunc is an undefined reference
file /usr/lib/phexlib3r.lib(/src/photon/lib/exlib/PxImage.c): undefined symbol _PxImageFunc
(see my attached file below)
I have written PxImageFunc() myself on my code, but it happends again :)

So, how can I do?
Attachment: Image PxImageFunc.png 14.08 KB
Re: PxImage linking error  
Hi Cong,

Can you attach a small complete source example that illustrates the issue?

Respectfully,
Oleg

15 янв. 2018 г., в 5:27:17, Cong Pham <community-noreply@qnx.com> написал:

> Hi everyone,
> 
> On the lastest QNX 4.25 build:
> 
> I have compiled a source-code file using PxImage lib.
> I have #include <photon/PxImage.h> in the source file.
> I have full options for linking libraries: -l Aplib -l phrtlib -l phexlib -l phcontrib -l photon_s -l phrender_s
> 
> But, when linking, it show error: 
> warning(1028): _PxImageFunc is an undefined reference
> file /usr/lib/phexlib3r.lib(/src/photon/lib/exlib/PxImage.c): undefined symbol _PxImageFunc
> (see my attached file below)
> I have written PxImageFunc() myself on my code, but it happends again :)
> 
> So, how can I do?
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post118376
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com
> <PxImageFunc.png>

Re: PxImage linking error  
Hi,

Here, this issue will appears with all functions which called.

on QNX 4.25 with Watcom C/C++ compiler 10.6 installed frome lasted CD (build 2015).



Attachment: Text pton7.cc 1.56 KB Text mf.7 660 bytes
Re: PxImage linking error  
Cong,

You have to define both PX_IMAGE_MODULES and desired PX_XXX_SUPPORT macros to enable PXImage functionality. You can add 
the following line to your mf.7 file just after CFLAGS = ...

CFLAGS += -DPX_IMAGE_MODULES -DPX_GIF_SUPPORTED

The list of supported PX modules you can find in QNX Help Viewer in PxLoadImage() overview.

Respectfully,
Oleg

16 янв. 2018 г., в 12:34:02, Cong Pham <community-noreply@qnx.com> написал:

> Hi,
> 
> Here, this issue will appears with all functions which called.
> 
> on QNX 4.25 with Watcom C/C++ compiler 10.6 installed frome lasted CD (build 2015).
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post118387
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com
> <pton7.cc><mf.7>

Re: PxImage linking error  
Yep Mr Oleg,

Thank for your suggestion. It's work!