Developing Your Application
Chapter 3
NI-488.2M SRM for OS/2
3-20
© National Instruments Corp.
Step 10. Place the Board Offline
Before ending your application program, take the board offline by using
the
ibonl
function.
ibonl(0,0);
Compiling and Linking Your Program
After you have written your application program, you need to compile your
program and link it with the language interface.
Make sure that the full pathname of the import library that you are using
(
ni488.lib
,
nibor.lib
, or
ni488_16.lib
) is included in the
SET LIB
configuration command in the
config.sys
file. For example, if the import
library is in a directory
d:\at-gpib\c
, the
SET LIB
configuration
command may appear as follows:
SET LIB = d:\toolkt20\os2lib;d:\cset2\lib;d:\at-gpib\c
32-Bit C Applications
Before you compile your application program, make sure that the following line
is included at the beginning of your program:
#include "decl.h"
Compile your 32-bit IBM C program by using the following command:
icc /c cprog.c
then enter the following command to link your compiled program with the NI-
488.2 32-bit IBM C language interface:
link386 /NOI cprog.obj,,,ni488.lib;