I would be very grateful if You help me with my problem in QNX Momentics IDE, which is illustrated by the following example:
I created QNX Photon AppBuilder Project named MyProject. In Initialization Function in PhAB I included header file:
The content of myheader.h was:
ext void printing( char * );
Then I created file myheader.c with the following function definition:
void printing( char *text )
printf( “%s”, text );
I put files myheader.h and myheader.c into Simple Project named MyHeaders. Then, on Properties of MyProject I set Project References to MyHeaders, and on QNX C/C++ Project, on both Sources/Include Paths tabs I added Source/Include import directory from the MyHeaders project.
When I build such a project, I get the error message "undefined reference to `printing’ ".
Note: the above method works when I create MyProject as QNX C Application Project.