Building your application on Solaris
This chapter describes the additional tasks, and the changes to the standard tasks, that perform when building WebSphere MQ for Solaris applications to run under Solaris. COBOL, C, and C++ programming languages are supported. For information about preparing your C++ programs, see WebSphere MQ Using C++.
In addition to coding the MQI calls in your source code, add the appropriate include files. Make yourself familiar with the contents of these files. See WebSphere MQ data definition files for a full description.
Solaris applications must be built threaded, regardless of how many threads the application uses. This is because WebSphere MQ creates background threads. Do not use nonthreadsafe functions such as:
- asctime
- ctime
- qmtime
- localtime
- rand
- srand
Use their threadsafe equivalents.
Throughout this chapter the \ character is used to split long commands over more than one line. Do not enter this character, enter each command as a single line.
Parent topic:
Building a WebSphere MQ application
fg16550_