ftp.nice.ch/pub/next/developer/resources/adaptors/dbmAdaptor.0.4.NIH.b.tar.gz#/dbmAdaptor-0.4/Documentation/Compiling.rtf

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

Copyright © 1993, 1994 Mike Henry.  All rights reserved.

Compiling your own DBKit Applications for use with dbmAdaptor

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

· Dynamically load the dbmAdaptor 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 dbmAdaptor into your application. To do this, simply drag dbmAdaptor onto the Libraries icon in Project Builder's Files window. dbmAdaptor 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 dbmAdaptor, 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.