Including the Annotations Header File in C/C++ Sources

When you add annotations to your C/C++ source files, you also need to include the Intel Advisor annotation header file advisor-annotate.h in those files. Use the code editor to type the line or use the context menu item to insert a #include directive.

To include the annotations C/C++ header file, specify one of the following forms listed below:

Use the quoted form to have the preprocessor first search for the header file in the same directory as the source file that contains the #include directive, and then other directories (see your compiler documentation for details).

#include "advisor-annotate.h"

Use the angle bracket form to have the preprocessor first search for the header file in the directory specified by the /I option (Additional Include Directories), and then other directories (see your compiler documentation for details).

#include <advisor-annotate.h>

To use the include file with Fortran or C# sources, see the help topic About Using the Intel Advisor Annotation Definitions File.

有关编译器优化的更完整信息,请参阅优化通知