Sun Java System Message Queue 4.3 Developer's Guide for C Clients

To Compile and Link on Solaris OS

CC -compat=5 -mt -DSOLARIS -I/opt/SUNWimq/include -o Producer \\
    -L/opt/SUNWimq/lib -lmqcrt Producer.c

For Solaris OS, if you need 64-bit support, you need to specify the following compiler options:

. For example, to compile and link the example application on Solaris/SPARC, you would use the following command:

CC -compat=5 -mt -xarch=v9 -DSOLARIS -I/opt/SUNWimq/include -o Producer \\
   L/opt/SUNWimq/lib/sparcv9 -lmqcrt Producer.c