National Instruments Drums 320685D-01 ユーザーズマニュアル
Chapter 5
UNIX Compiler/Linker Issues
©
National Instruments Corporation
5-11
LabWindows/CVI Programmer Reference Manual
of
setlocale
. In contrast, LabWindows/CVI links standalone executables to the shared
library
libc.so
, which contains the fully functional version of
setlocale
.
Between LabWindows/CVI and Sun Solaris
The following incompatibilities exist between LabWindows/CVI and Sun Solaris:
•
LabWindows/CVI does not support the
long long
data type some header files on
Solaris 2 use. In LabWindows/CVI, you cannot use that data type or call functions that
use that data type.
use that data type.
•
LabWindows/CVI implements the data type
long double
as an 8-byte object, in the
same way that it implements
double
. Sun Solaris implements
long double
as a
16-byte object. As a result, Sun Solaris functions that use
long double
do not work
properly in LabWindows/CVI.
•
The LabWindows/CVI implementation of the
printf
and
scanf
family of functions
does not support the Sun Solaris implementation of
long double
.
•
LabWindows/CVI does not support wide character constants (
wchar_t
) of the form
L'ab'
.
•
The data types
jmp_buf
and
sigjmp_buf
that the header file
setjmp.h
defines are
different for LabWindows/CVI and Sun Solaris. The LabWindows/CVI versions of these
buffers are larger than the Sun Solaris versions because LabWindows/CVI stores
additional debugging information in them. As a result, you must be careful when you use
buffers are larger than the Sun Solaris versions because LabWindows/CVI stores
additional debugging information in them. As a result, you must be careful when you use
jmp_buf
and
sigjmp_buf
objects among multiple files. In particular, if you compile a
file in LabWindows/CVI with debugging enabled and the file uses
setjmp
or
longjmp
,
then your program must include the LabWindows/CVI version of
setjmp.h
to handle
those functions correctly. The same is true for
sigjmp_buf
,
sigsetjmp
, and
siglongjmp
.
00ProRef.book : 06chap05.fm Page 11 Monday, March 9, 1998 3:23 PM