I can't excute message queue

Hi.
I want to excute a message queue.
So, I found a source code about message queue.
and I try to excute it.
But when I compile the code, QNX does not support message queue.
I found the message queue header file in /usr/include/mqueue.h.
If anyone knew about message, please give me some hints.
Thaks.


Medical Instrumentation Lab.
Dept. of Biomedical Engineering
Yonsei University
220-710 Meaji, 234, Heungup, Wonju,
Kangwon, Republic of Korea
phone : +82)33-760-2858
fax : +82)33-766-1953

Are you explicitly linking to the library lmqueue? It is not searched by default.

JinSoolLee wrote:

Hi.
I want to excute a message queue.
So, I found a source code about message queue.
and I try to excute it.
But when I compile the code, QNX does not support message queue.
I found the message queue header file in /usr/include/mqueue.h.
If anyone knew about message, please give me some hints.
Thaks.


Medical Instrumentation Lab.
Dept. of Biomedical Engineering
Yonsei University
220-710 Meaji, 234, Heungup, Wonju,
Kangwon, Republic of Korea
phone : +82)33-760-2858
fax : +82)33-766-1953

Jack Rosenbloom
Webcraft Mail Systems
Manager, Process Control Systems Engineering
4371 County Line Road
Chalfont PA. 18914
Phone: (215) 997-5269
FAX: (215) 997-5455
E-Mail jrosenbloom@webcraft.com

JinSoolLee <lhjs1@milab.yonsei.ac.kr> wrote:

Hi.
I want to excute a message queue.
So, I found a source code about message queue.
and I try to excute it.
But when I compile the code, QNX does not support message queue.
I found the message queue header file in /usr/include/mqueue.h.
If anyone knew about message, please give me some hints.

When compiling, you have to explicitly link against the mqueue
library by passing -lmqueue to cc. e.g.:

cc -lmqueue mq_prog.c -omq_prog

-David

QNX Training Services
dagibbs@qnx.com

David Gibbs <dagibbs@qnx.com> wrote:

JinSoolLee <> lhjs1@milab.yonsei.ac.kr> > wrote:
Hi.
I want to excute a message queue.
So, I found a source code about message queue.
and I try to excute it.
But when I compile the code, QNX does not support message queue.
I found the message queue header file in /usr/include/mqueue.h.
If anyone knew about message, please give me some hints.

When compiling, you have to explicitly link against the mqueue
library by passing -lmqueue to cc. e.g.:

cc -lmqueue mq_prog.c -omq_prog

Also, before running the code, you have to explicitly run the
message queue server:

Mqueue &

Done as root – or put it in your sysinit.

-David

QNX Training Services
dagibbs@qnx.com