National Instruments NI-488.2 NI-488.2 User Manual page 54

National instruments network hardware - networking hardware user manual
Hide thumbs Also See for NI-488.2 NI-488.2:
Table of Contents

Advertisement

Chapter 4
Developing Your NI-488.2 Application
your application starts, compile and link your application as shown in the
following examples:
gcc prog.c -lgpibapi
or
g++ prog.cpp -lgpibapi
To have the library dynamically loaded on demand when your application
accesses the library, include
during the link phase of your
cib.o
application, as shown in the following examples:
gcc prog.c cib.o -ldl
or
g++ prog.cpp cib.o -ldl
is in
, where
<InstallDir> /natinst/ni4882/lib
cib.o
is the directory where you chose to install the NI-488.2
<InstallDir>
software. The default is
. The file
contains code to
/usr/local
cib.o
dynamically load the library.
The advantage of the latter way of compiling and linking your application
is that it allows your application to run regardless of whether the NI-488.2
software is installed, as long as it does not make any NI-488.2 calls.
© National Instruments Corporation
4-17
NI-488.2 User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents