16-Bit C Applications; Running Your Application Program - National Instruments NI-488.2M Software Reference Manual

For os/2
Hide thumbs Also See for NI-488.2M:
Table of Contents

Advertisement

Chapter 3
Developing Your Application
Compile your 32-bit Borland C program using the following command:
bcc /c cprog.c
then enter the following command to link your compiled program with the NI-
488.2 32-bit Borland C language interface:
tlink /c /Toe c02.obj cprog.obj,,,os2.lib c2mti.lib
nibor.lib;

16-Bit C Applications

Before you compile your application program, make sure that the following line
is included at the beginning of the program:
#include "decl_16.h"
Compile your 16-bit program by using the following command:
cl
/c
cprog.c
then enter the following command to link your compiled program with the NI-
488.2 16-bit C language interface:
link /NOI cprog.obj,,,ni488_16.lib;

Running Your Application Program

After you have compiled and linked your application program, you can begin
using it. Make sure that the full pathname of the DLL that you are using
(ni488.dll, nibor.lib, or ni488_16.dll) is included in the
LIBPATH statement in your config.sys file. For example, if the DLL is in a
directory d:\at-gpib\c, the LIBPATH configuration command may appear
as follows:
LIBPATH=.;d:\os2\dll;d:\os2\mdos;d:\;d:\at-gpib\c;
If you discover errors when you execute the program, refer to Chapter 4,
Debugging Your Application.
© National Instruments Corp.
3-21
NI-488.2M SRM for OS/2

Advertisement

Table of Contents
loading

Table of Contents