Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Compiling Photon Examples
Ref. No. QNX.000009492
Category(ies) Development
Issue We are trying to compile the PxLoadImage example from the helpviewer, but it is generating this  compile error: Warning(1028) PxLoadImage_ is an undefined reference

My compile line is: cc pxloadimg.c -o pxloadimg

Solution If you are compiling any Photon without PhAB, you must include the Photon libraries. This are the options you will need to compile the application:

cc app.c -l Aplib -l phrtlib -l phexlib -l phcontrib -l photon_s -l phrender_s -o app