问题
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘sem_unlink’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘sem_close’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘sem_post’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘sem_open’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘sem_getvalue’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘sem_wait’未定义的引用
解决:在编译的时候加上:-pthread
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘mq_unlink’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘mq_getattr’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘mq_receive’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘mq_open’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘mq_notify’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘mq_send’未定义的引用
/mnt/hgfs/share/msg_test/lib/libcommon.so:对‘mq_close’未定义的引用
解决:在编译的时候加上:-lrt