Chapter 5
Begin to Use the NI-488.2M Software
PCI-GPIB for Solaris 2
5-2
© National Instruments Corporation
•
When you compile your application, you must link it to the GPIB C
language interface library using one of the following commands,
where
example.c
is your application name:
cc example.c -lgpib
or
cc example.c -dy -lgpib
or
cc example.c -dn -lgpib
-dy
specifies dynamic linking, which is the default method. It links the
application to
libgpib.so
.
-dn
specifies static linking in the link editor.
It links the application to
libgpib.a
. For more information about
compiling and linking, see the
man
pages for
cc
and
ld
.
For information about choosing a programming method, developing your
application, or compiling and linking, refer to the NI-488.2M Software
Reference Manual. The reference manual also contains detailed
information about each NI-488 function and NI-488.2 routine.