Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
hp OpenCall SS7 platform Application Developer's Guide: For Release 3.1 on Linux > Chapter 2 General System Guidelines

Compiling and Linking

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

HP OpenCall SS7 APIs are available as shared libraries.

C Language

Compiling and Linking in a Single Command (C)

To compile and link a C program in a single command line, you use:

gcc -D_GNU_SOURCE -fexceptions -pthread -Wall -I/opt/OC/include -o foo foo.c
-L/opt/OC/lib -lSS7utilXXX

where XXX = WBB, AAA, WAA, or ABB.

Compiling Only (C)

To compile a C source-code, you use:

gcc -D_GNU_SOURCE -fexceptions -pthread -Wall -I/opt/OC/include -c foo.c

Linking Only (C)

To link a C program, you use:

gcc -fexceptions -pthread foo.o -o foo -L/opt/OC/lib -lSS7utilXXX

where XXX = WBB, AAA, WAA, or ABB.

C++ Language

Compiling and Linking in a Single Command (C++)

To compile and link a C++ program in the same command line, you use:

g++ -fexceptions -pthread -Wall -I/opt/OC/include -o foo foo.c -L/opt/OC/lib
-lSS7utilXXX

where XXX = WBB, AAA, WAA, or ABB.

Compiling Only (C++)

To compile a C++ source-code, you use:

g++ -F_GNU_SOURCE -fexceptions -pthread -Wall -I/opt/OC/include -c foo.c

Linking Only (C++)

To link a C++ program, you use:

g++ -D_GNU_SOURCE -fexceptions -pthread -Wall foo.o -o foo  -I/opt/OC/include
-L/opt/OC/lib -lSS7utilXXX

where XXX = WBB, AAA, WAA, or ABB.

Examples of Compile/Link Commands

There are examples of compile/link commands (appropriate for each HP OpenCall SS7 API) in the sections listed below.

These examples show a compile and link in a single command. If you want to compile and link separately, you must adjust these examples using the principles shown in the sections: “Compiling Only (C)”, “Compiling Only (C++)”, “Linking Only (C)”, “Linking Only (C++)”.

Level 3 API

“Using the MTP3 API Shared Library ”.

SCCP API

“Using the SCCP API Shared Library ”.

TCAP API

“Using the TCAP API Shared Library ”.

ISUP API

“Using the ISUP API Shared Library ” and “ISUP Makefiles ”.

TUP API

“Using the TUP API Shared Library ”.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.