Problem while cross compiling
While cross compiling my application for arm9 I am getting following messages:
/root/arm/g2/fw/lib/core/mq.c:74: undefined reference to `mq_unlink'
/fw/lib/core/mq.c:82: undefined reference to `mq_open'
/fw/lib/core/mq.c:87: undefined reference to `mq_open'
/root/arm/g2/fw/lib/core/mq.c:101: undefined reference to `mq_close'
/fw/lib/core/mq.c:102: undefined reference to `mq_close'
/root/arm/g2/fw/lib/core/mq.c:120: undefined reference to `mq_send'
/root/arm/g2/fw/lib/core/mq.c:140: undefined reference to `mq_receive'
/root/arm/g2/fw/lib/core/mq.c:158: undefined reference to `mq_timedreceive'
/root/arm/g2/fw/lib/core/mq.c:187: undefined reference to `mq_getattr'
/root/arm/g2/fw/lib/core/mq.c:204: undefined reference to `mq_unlink'
collect2: ld returned 1 exit status
My makefile has -lrt library included while gcc since message queue related implementation present in librt.a libraray. and Also the library path is set in $PATH variable.
Can anyone tell me the cause for this issue, so that I am able to debug I have tried all possiblity arround.
If library is compile for another platform and the application code if I compile with anothet platform would this error occur.
Kindly help me.
Thanks,
Jackson
|