National Instruments NI-488.2 ユーザーズマニュアル

ページ / 134
Chapter 4
Developing Your NI-488.2 Application
4-16
ni.com
Before exiting your application, you need to free 
gpib-32.dll
 with the 
following command:
FreeLibrary(Gpib32Lib);
For more examples of directly accessing 
gpib-32.dll
, refer to the direct 
entry sample programs 
dlldevquery.c
 and 
dll4882query.c
, installed 
with the NI-488.2 software. For more information about direct entry, refer 
to the online help for your development environment.
Language-Specific Programming Instructions for 
Mac OS X
The following information describes how to develop, compile, and link 
your Mac OS X NI-488.2 applications.
Before you compile your application, remember to include the following 
line at the beginning of your program:
#include <NI488/ni488.h>
To compile and link your application using the CodeWarrior or Project 
Builder environments, include 
NI488.framework
 into your CodeWarrior 
or Project Builder project. The framework is located at 
/Library/
Frameworks
.
To compile and link your application in a Terminal Shell, type the following 
code on the command line:
cc cprog.c -framework NI488
Language-Specific Programming Instructions for Linux
The following information describes how to develop, compile, and link 
your Linux NI-488.2 applications.
Before you compile your application, remember to include the following 
line at the beginning of your program:
#include <ni488.h>
Your application must link with the NI-488.2 dynamic library 
libgpibapi.so
. There are two ways to load a dynamic library on 
Linux—static and dynamic. To have the library statically loaded at the time