Troubleshooting
Problem
You are trying to compile an IBM MQ sample and you use the following statement, which is obtained from the MQ documentation (Application Programming Guide):
gcc -m64 -o amqsmon amqsmon0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -Wl, -rpath=/opt/mqm/lib64 -Wl, -rpath=/usr/lib64 -lmqm
gcc -m64 -o amqsmon amqsmon0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -Wl, -rpath=/opt/mqm/lib64 -Wl, -rpath=/usr/lib64 -lmqm
Symptom
You get the following errors:
gcc: unrecognized option `-rpath=/opt/mqm/lib64'
gcc: unrecognized option `-rpath=/usr/lib64'
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
gcc: unrecognized option `-rpath=/opt/mqm/lib64'
gcc: unrecognized option `-rpath=/usr/lib64'
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[{"code":"a8m0z00000008HMAAY","label":"Application Programming"}],"ARM Case Number":"TS019828725","Platform":[{"code":"PF016","label":"Linux"}],"Version":"9.2.0;9.3.0;9.4.0"}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
03 September 2025
UID
swg21329145