Linking PtNumericFloat() with static libs on QNX RTP.
PtNumericFloat is an undefined reference when linking with static libs.
PhAb has been updated for the future release.
But for older apps you need “-Bstatic -lph” added to the end of the link
line.
Thanks for the response, but this is not my problem.
I am not using PhAB.
$ nm /usr/lib/libph.so | grep PtNumericFloat (yields nothing).
$ nm /usr/lib/libph.a | grep PtNumericFloat
00000000000000c D PtNumericFloat
nm: libph.a: Malformed archive
I can’t link against static libs, since I am writing a O-O framework for
Photon that is implemented as a shared lib. An app written using this
shared lib makes no direct photon calls (the calls are being made from the
shared lib). I am assuming that the static libs are not compiled PIC, since
this makes no sense (the only reason you would link against a static lib is
for a canned embedded system where speed and size would be tantamount).
I have no intention of using the static lib so I don’t really care about the
malformed archive, but the lack of PtNumericFloat is a major problem.
Again, this is with Patch B.