Sun Java System Portal Server 7 Developer's Guide

Compiling and Linking your Code

You can compile your code with any ANSI C compiler. See the makefile in the PortalServer-base/sdk/robot/example directory for an example. The makefile assumes the use of gmake.

This section lists the linking options you need to use to create a shared object that the robot can be instructed to load by commands in the filter.conf configuration file. Note that you can link object files into a shared object. In Table 19–1, the compiled object files t.o and u.o are linked to form a shared object called test.so.

Table 19–1 Options for linking

System  

Compile options  

Solaris 

ld -G t.o u.o -o test.so