Using the libmqmsgque package.
Collaboration diagram for Internal - application package:Using the libmqmsgque package.
With automake/libtool the libmqmsgque library needs to be linked with the executable/library, this is done with:
LDADD = path/to/libmqmsgque.la
or
mylib_la_LIBADD = path/to/libmqmsgque.la
Example from acmds/Makefile.am using libmkkernel.la and libmqmsgque.la: