Application Compilation and Linking

The C language examples directory for TIBCO ActiveSpaces includes a Makefile that you can use to compile and link the example programs. It is recommended that you examine this Makefile to see which compiler flags and linker options to use for building your application.

Table 2, ActiveSpaces Compiler Platforms lists compilers that you can use for each platform supported by TIBCO ActiveSpaces:

ActiveSpaces Compiler Platforms
Compiler Platforms
xlC AIX
aCC HP-UX
gcc Linux, Mac
CC Solaris
cl Windows

When linking your application, you might need to link the libraries listed in Table 3, Link Libraries for ActiveSpaces, depending on your platform and whether you statically link libraries:

Link Libraries for ActiveSpaces
Platform Library Description
All as-common Required for by all applications that use the C API.
All as-tibpgm Required for applications that use tibpgm for discovery.
Linux, Mac, AIX, HP-UX pthread Posix threads library.
Solaris thread Solaris threads library.
Linux, Mac, AIX dl Dynamic loading library.
Windows ws2_32.lib Windows socket library.
Windows advapi32.lib Windows advanced services library.

Running Your Application

To run your application, ensure that your environment has been set up properly for running a TIBCO ActiveSpaces application. Ensure that your path or library path is set up properly so that the TIBCO ActiveSpaces libraries can be found when you run your application. For information on setting up your environment, see the TIBCO ActiveSpaces Installation guide.