Programming and posix - February 2001

February 10, 2001
Solution Symposium
Page 22
hp e3000
programming
and posix
creating an nmxl shared library
Create the NMXL shared library:
shell/iX> gcc -Wl,-b -o libhw.sl helloworld.o
or
shell/iX> ld -b -o libhw.sl helloworld.c
-Wl - pass parameters to linker
-b - create an NMXL shared library
Link with the shared library:
shell/iX> gcc -o hwcgi hwcgimain.o \
-Wl,-ashared -L. -lhw
-ashared - prefer NMXLs instead of NMRLs