Compiling the TDP Library

Command Line Interface

Before you can link your test harness or your instrumented application, you must compile the Target Deployment Port library. This section describes how to do this.

Requirements

To compile the Target Deployment Port library, make sure that:

Compilation

Depending on the language of your source file:

  • For C: compile the TP.c file

  • For C++: compile the TP.cpp file

  • For Ada: compile the contents of the /lib directory

Do not forget to add to the include search path the directory where the products.h file is located (usually with option -I or /I, depending on the compiler).

Configuration Settings

A wide variety of compilation flags can be used by the command line tools, allowing you to select sub-components of the application under test. These flags are equivalent to the Test Configuration Settings dialog box of the graphical user interface and are covered in the Reference section.

Default settings are contained in the following Perl script. You can use this file to define your own customized configuration settings.

<InstallDir>/lib/scripts/BatchCCDefaults.pl

To run this script, type the following command:

$TESTRTDIR/bin/<cpu>/<os>/perl -I$TESTRTDIR/lib/perl

$TESTRTDIR/lib/scripts/TDPBatchCC.pl <my_env.pl>

where <cpu> is the architecture platform of the machine, <os> is the operating system, and <my_env.pl> is your customized copy of the BatchCCDefaults.pl file

The TESTRTDIR and ATLTGT environment variables must have been previously set.

Related Topics

Preparing a Products Header File | Setting Environment Variables