Linking an SAP Development Library 

Prerequisites

If you use functions of one of the two SAP development libraries in your C program, link the library with your program.

If you have not specified the computer type in your program with the statement define, you must specify it when you compile the program. The define variables are described in Define Variables for Host Types.

Procedure

Under UNIX, you link an SAP development library with your program as follows:

cc -D<Define variable> <Program name> <SAP library> -o <Executable file>

cc -DSAPonHP_UX cpict1.c cpictlib.o -o cpict1

With SNC support (as of Release 3.1G) you must specify the dynamic link option on certain platforms.