EasyManua.ls Logo

Agilent Technologies 33120A - QuickBASIC Language Programs

Agilent Technologies 33120A
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Compiling and Linking a C Program
To run a program, first compile and link the program to make an
executable file. To compile and link a program:
Make sure the necessary PATH statements have been added to your
AUTOEXEC.BAT file to enable the compiler to find the library and
header files (see your C Language manual to specify the proper paths).
Link the appropriate GPIB C library file for your compiler (the file is
located on the
GPIB Command Library disk that came with the GPIB
Interface Card). Use the appropriate library file:
clhpib.lib
for Microsoft
®
QuickC
®
tchhpib.lib for Borland
®
Turbo C
®
++
If you are not compiling in the “large” or “huge” memory model,
include the “
CFUNC.H header file in your program (the file is located
on the
GPIB Command Library disk that came with the GPIB
Interface Card).
To compile Microsoft
®
QuickC
®
programs from the DOS command line
(using the “large memory model), execute the following:
qcl /AL <
path... \program.C> <path... \clhpib.lib>
For example:
qcl /AL b:\arb_wave.c c:\qc2\lib\clhpib.lib
Change the “/AL” parameter to the appropriate setting when
compiling in the smaller memory models (see your C Language
manual for more information). For some programs, you may also have
to change the stack size using the “/F ” parameter.
6
Chapter 6 Application Programs
C Language Programs
245

Table of Contents

Other manuals for Agilent Technologies 33120A

Related product manuals