National Instruments GPIB-SCSI-A Network Card User Manual


 
Chapter4 UsingNI-488.2withSolaris
GPIB-SCSI-A for Solaris 4-2 ni.com
Programming Considerations
Depending on the programming language you use to develop your
application, you must include certain files, statements, or global variables
at the beginning of your application. For example, you must include the
header file
sys/ugpib.h
in your source code if you are using C/C++.
You must link the language interface library with your compiled source
code. Link 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 each NI-488 function and IEEE 488.2-style
function, choosinga programming method, developing your application, or
compiling and linking, refer to the NI-488.2M Software Reference Manual.
GS.book Page 2 Tuesday, June 12, 2001 2:17 PM