Preparing an Options Header File

Command Line Interface

This step is necessary if you are using:

If you do not use attolcc instrumentor launcher, you must set up a file named options.h before you can compile a generated source file.

How to prepare the options.h file:

  1. From the sub-directory lib of the selected Target Deployment Port, copy a file named options_model.h to a directory of your choice, and rename it to options.h.

The directory of your choice may be the directory where the generated source files or instrumented source files are located.

  1. Open options.h in a text editor and add the following define at the beginning of the file:

#define ATL_WITHOUT_STUDIO

  1. Make any necessary changes by adjusting the corresponding macros in the file.

The options_model.h file is self-documented, and you can adjust every macro to one of the values listed. Each macro is set to a default value, so you can keep everything unchanged if you don't know how to set them.

Take note of the directory where this file is stored, you will need it in order to compile the generated or instrumented source files.

You can also use the attolcc launcher to create an options.h file, by typing the following command:

attolcc -force_tdp_cc -env_ATL_NO_TDP_COMPILE=1 <options> <settings>

Related Topics

Preparing a Products Header FileCommand Line Component Testing for C, Ada and C++Command Line System Testing for C