QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
| Title |
_PxImageFunc is an undefined reference |
| Ref. No. |
QNX.000009494 |
| Category(ies) |
Development |
| Issue |
We want to include images in our Photon application. The application is trying to load images using the PxLoadImage function. But, when we compile, we get this error: x09_PxImageFunc is an undefined reference
How can we fix this?
|
| Solution |
The _PxImageFunc is an undefined reference error is caused when you include the <photon/PxImage.h> file before you define the image modules that your application will support.
... #include <Ph.h> #include <Pt.h> #define PX_IMAGE_MODULES // define the modules we want #define PX_GIF_SUPPORT #define PX_JPG_SUPPORT #define PX_PCX_SUPPORT #define PX_BMP_SUPPORT #include <photon/PxImage.h>
... |
|