+

Search Tips | Advanced Search

Building 31-bit applications

This topic contains examples of the commands used to build 31-bit programs in various environments.

MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.

    C client application, 31-bit, non-threaded
    gcc -m31 -o famqsputc_32 amqsput0.c -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -lmqic
    

    C client application, 31-bit, threaded
    gcc -m31 -o amqsputc_32_r amqsput0.c -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -lmqic_r -lpthread
    

    C server application, 31-bit, non-threaded
    gcc -m31 -o amqsput_32 amqsput0.c -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -lmqm
    

    C server application, 31-bit, threaded
    gcc -m31 -o amqsput_32_r amqsput0.c -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -lmqm_r -lpthread
    

    C++ client application, 31-bit, non-threaded
    g++ -m31 -fsigned-char -o imqsputc_32 imqsput.cpp -I MQ_INSTALLATION_PATH/inc
    -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -limqc23gl
    -limqb23gl -lmqic
    

    C++ client application, 31-bit, threaded
    g++ -m31 -fsigned-char -o imqsputc_32_r imqsput.cpp -I MQ_INSTALLATION_PATH/inc
    -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -limqc23gl_r
    -limqb23gl_r -lmqic_r -lpthread
    

    C++ server application, 31-bit, non-threaded
    g++ -m31 -fsigned-char -o imqsput_32 imqsput.cpp -I MQ_INSTALLATION_PATH/inc
    -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -limqs23gl
    -limqb23gl -lmqm
    

    C++ server application, 31-bit, threaded
    g++ -m31 -fsigned-char -o imqsput_32_r imqsput.cpp -I MQ_INSTALLATION_PATH/inc
    -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib -Wl,-rpath=/usr/lib -limqs23gl_r
    -limqb23gl_r -lmqm_r -lpthread
    

    C client exit, 31-bit, non-threaded
    gcc -m31 -shared -fPIC -o /var/mqm/exits/cliexit_32 cliexit.c
    -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=/usr/lib -lmqic
    

    C client exit, 31-bit, threaded
    gcc -m31 -shared -fPIC -o /var/mqm/exits/cliexit_32_r cliexit.c
    -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=/usr/lib -lmqic_r -lpthread
    

    C server exit, 31-bit, non-threaded
    gcc -m31 -shared -fPIC -o /var/mqm/exits/srvexit_32 srvexit.c
    -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=/usr/lib -lmqm
    

    C server exit, 31-bit, threaded
    gcc -m31 -shared -fPIC -o /var/mqm/exits/srvexit_32_r srvexit.c
    -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -Wl,-rpath= MQ_INSTALLATION_PATH/lib
    -Wl,-rpath=/usr/lib -lmqm_r -lpthread
    

Parent topic: Preparing C programs in Linux

Last updated: 2020-10-04