|
|
The BT library is distributed as a tar file, which contains
a set of C source and header files, a
First, unpack the tar file into a convenient directory. cd to
the directory containing the source files and issue the command
make clean;make. This will compile each BT
library file, and create the UNIX static library
The default BT library build will create a 32-bit version, in which the maximum size of the index file is 2GiB. A version of BT with Large File Support can be built with the command make clean;make LFS=1. When compiling programs against a LFS version of BT, if you need to manipulate the BTint value associated with a key, ensure you set the compile-time flag _FILE_OFFSET_BITS=64, e.g:
$ gcc -o yak yak.c -lbt -D_FILE_OFFSET_BITS=64
This is not necessary if you are just using the in-built data
record functions (
In order to test the newly created BT library, you can use the
bt test harness for ad-hoc testing.
Alternatively, the |