Linking a C/C++ Program to the Runtime Library
Use
You are linking the file generated by
calling the C/C++ Precompiler command to the required object files and precompiler libraries. This results in an executable program <main>.Prerequisites
The environment variable
PATH contains the path /opt/sapdb/interfaces/precompiler/bin.Procedure
Use the following command:
cpclnk <main> [<external_objects_or_libs>]
<main> |
The name of the object file (without the file extension .o) containing the function main |
<external_objects_or_libs> |
Files with objects and precompiler libraries in any sequence. Specification of the file extension .o for objects and .a for libraries is optional.If you do not specify anything here, <main> will only be linked with the precompiler’s runtime library. |