gdsrip logo

Linking

In order to link the library to the user's program, following steps need to be followed:

  1. Add the path of gdsriplib.a to the list of static libraries in the makefile that builds the program.

  2. Add the path of the directory containing gdsriplib.h to the list of includes in the make file.

  3. Include gdsriplib.h in the program modules that will be using the functions exported by the library.

  4. Add the following to the list of defines in the makefile:

      -D_FILE_OFFSET_BITS=64
      -D_LARGEFILE_SOURCE
      -DFLEXLM
      -DDOTHREADS
      -D_VNW_
      -D_REENTRANT

(Refer to makefile.example.amd64 for 64bit Linux or makefile.example.solaris for 32bit solaris shipped as a part of the package, as a sample makefile for a program using the gdsriplib)