Linker Commands And Options For Generating A Shared Object; Additional Linker Flags - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Creating and Using Custom SAFs
Table 4-1 lists the library that you need to link to.
Table 4-1
Platform
Windows NT/Windows
2000
HP-UX
All other UNIX platforms

Linker Commands and Options for Generating a Shared Object

To generate a shared library, use the commands and options listed in Table 4-2.
Table 4-2
Platform
Solaris Sparc
Windows NT/Windows
2000
HP-UX
Compaq
Linux
IRIX

Additional Linker Flags

Use the linker flags in Table 4-3 to specify which directories should be searched for
shared objects during runtime to resolve symbols.
Table 4-3
Platform
Solaris Sparc
Windows NT/Windows
2000
HP-UX
122
Netscape Enterprise Server NSAPI Programmer's Guide • April 2002 (Draft)
Libraries
Library
ns-httpd40.dll
libraries)
libns-httpd40.sl
libns-httpd40.so
Linker commands and options
Options
ld -G or cc -G
link -LD
cc +Z -b -Wl,+s -Wl,-B,symbolic
cc -shared
gcc -shared
cc -shared
Linker flags
Flags
-R dir:dir
(no flags, but the ns-httpd40.dll file must be in the system
PATH variable)
-Wl,+b,dir,dir
(in addition to the standard Windows

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents