Sample programs

To build the DB-Library sample programs, you must uncomment the CFLAGS and DBLIBS definition in the makefile for your platform.

To build the Sun Solaris 8 (SPARC 32-bit) DB-Library sample programs, add the following lines to the makefile:

#If building for Sun 64 bit platform please enable the following line(s):
#
#CFLAGS = -DSYB_LP64 -xarch=v9 -xchip=ultra -Xa -xO0
# Static usage of libsybdb.a
#DBLIBS = $(LIBDIR)/libsybdb64.a -B dynamic -lnsl
# Alternatively for dynamic usage of libsybdb.so
#DBLIBS = -L$(LIBDIR) -lsybdb64

To build the Sun Solaris 10 x64 (Opteron 64-bit) DB-Library sample programs, add the following lines to the makefile:

#If building for Sun 64 bit platform please enable the following line(s):
#
#CFLAGS = -g -DSYB_LP64 -xtarget=opteron -xarch=amd64
# Static usage of libsybdb.a
#DBLIBS = -lsybdb64
# Alternatively for dynamic usage of libsybdb.so
#DBLIBS = -L$(LIBDIR) -lsybdb64

Disable the following line at the top of the makefile:

# Default 32 bit environment
DBLIBS = $(LIBDIR)/libsybdb.a