ftp.nice.ch/pub/next/unix/database/gdbmAdaptor.0.5.NIHS.bs.tar.gz#/gdbmAdaptor-0.5/Documentation/Compiling.rtf

This is Compiling.rtf in view mode; [Download] [Up]

Copyright © 1993±1995 Mike Henry.  All rights reserved.

Compiling your own DBKit Applications for use with dbmAdaptor

In order for DBKit applications to work properly with gdbmAdaptor (actually with any DBKit Adaptor), you have two options:

· Dynamically load the gdbmAdaptor code. To do this, you need to create a file in your project directory called "Makefile.preamble" which contains the following line:

 OTHER_LDFLAGS = -u libdbkit_s -u libNeXT_s -u libsys_s

· Hard-link gdbmAdaptor into your application. To do this, simply drag gdbmAdaptor onto the Libraries icon in Project Builder's Files window. gdbmAdaptor is usually located in /LocalLibrary/Adaptors or in ~/Library/Adaptors.

Dynamically loading Adaptor code is the prefered method of linking DBKit Adaptors since this helps you write generic tools, without knowing which database they will be run against. Also this enables your application to get the latest and greatest version of gdbmAdaptor, whenever they are revised. However, dynamically loading an adaptor slows down program startup (often by several seconds).

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.