137
The C++–Pascal Interface
7
This chapter describes how to mix C++ and Pascal modules in the same
program. It contains the following sections:
Sample Interface
You must use the compiler option
-lpc
when you use
CC
to link a C++ main
routine that calls Pascal.
-lpc
denotes linking with the Pascal runtime
support library
libpc
. On the Solaris 1.x environment, if you use
pc
to link,
you must add the
-lc
option.
The
-calign
option causes
pc
to use data formats for aggregate objects
similar to those in C++.
Sample Interface
page 137
Compatibility of Types for C++ and Pascal
page 138
C++ Name Encoding
page 138
Procedure Calls: C++–Pascal
page 138
Procedure Calls: Pascal–C++
page 155
Global Variables in C++ and Pascal
page 161
Pascal File Pointers to C++
page 162
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......