Example Programs

From InterBase
Jump to: navigation, search

Go Up to Building Applications


Example programs demonstrating how to use the InterBase API are included in the examples subdirectory of the InterBase installation directory. There is also a sample .def file.

On NT, there are two make files, makefile.bc for the compiler and linker, and makefile.msc for the Microsoft compiler and linker. In both files, you must modify the IBASE environment variable to point to an absolute path.

In the .bc make file, modify the BCDIR variable to point to the absolute path to the compiler and linker.

In the .msc make file, modify the MSCDIR variable to point to the absolute path to the Microsoft compiler and linker.

To build the example applications on NT using C++, use the following command:

make -B -f makefile.bc all

To build the example applications using Microsoft C++, use this command:

nmake -B -f makefile.msc all

On UNIX systems, the command to build the example applications is as follows:

make all

Advance To: