For all UNIX platforms, Platform LSF API functions are contained in two libraries, liblsf.a (LSLIB) and libbat.a (LSBLIB). For Windows, the file names of these libraries are: liblsf.lib (LSLIB) and libbat.lib (LSBLIB). These files are installed in LSF_LIBDIR, where LSF_LIBDIR is defined in the file lsf.conf.
Note: LSBLIB is not independent. It must always be linked together with LSLIB because LSBLIB services are built on top of LSLIB services.
Platform LSF uses BSD sockets for communication across a network. On systems that have both System V and BSD programming interfaces, LSLIB and LSBLIB typically use the BSD programming interface. On System V-based versions of UNIX such as Solaris, it is necessary to link applications using LSLIB or LSBLIB with the BSD compatibility library. On Windows, a number of libraries need to be linked together with LSF API. Details of these additional linkage specifications (libraries and link flags) are shown in the table below.
Platform
|
Additional Linkage Specifications
|
ULTRIX 4
|
None
|
Digital UNIX
|
-lmach -lmld
|
HP-UX
|
-lBSD
|
AIX
|
-lbsd
|
IRIX 5
|
-lsun -lc_s
|
IRIX 6
|
None
|
SunOS 4
|
None
|
Solaris 2
|
-lnsl -lelf -lsocket -lrpcsvc -lgen -ldl
|
Solaris 7 32-bit
|
-lnsl -lefl -lsocket -lrpcsvc -lgen -ldl -DSVR4 -lresolv -lm
|
Solaris 7 64-bit
|
-lnsl -lefl -lsocket -lrpcsvc -lgen -ldl -Xarch=v9 -lresolv -lm
|
NEC
|
-lnsl -lelf -lsocket -lrpcsvc -lgen
|
Sony NEWSs
|
-lc -lnsl -lelf -lsocket -lrpcsvc -lgen -lucb
|
ConvexOS
|
None
|
Cray Unicos
|
None
|
Linux
|
libnsl.a
|
Windows 2000
|
-MT -DWIN32 libcmt.lib oldnames.lib kernel32.lib advapi32.lib user32.lib wsock32.lib mpr.lib netapi32.lib userenv.lib oleaut32.lib uuid.lib activeds.lib adsiid.lib ole32.lib liblsf.lib libbat.lib
|
Windows XP
|
-MT -DWIN32 libcmt.lib oldnames.lib kernel32.lib advapi32.lib user32.lib wsock32.lib mpr.lib netapi32.lib userenv.lib oleaut32.lib uuid.lib activeds.lib adsiid.lib ole32.lib liblsf.lib libbat.lib
|
Note: On Windows, you need to add paths specified by LSF_LIBDIR and LSF_INCLUDEDIR in lsf.conf to the environment variables LIB and INCLUDE.
Recall that the GNU C compiler on Solaris only supports 32 bit application development (not 64 bit). Link your 32 bit applications on Solaris with the 32 bit LSF sparc-sol7-32 distribution file.
The $LSF_MISC/examples directory contains a makefile for making all the example programs in that directory. You can modify this file and the example programs for your own use.
All LSLIB function call names start with ls_.
All LSBLIB function call names start with lsb_.