Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

CasePlayer2 Analysis

019_02: What is the lookup order for CasePlayer2's include path settings?

Question:

In what order will included header files (ex: #include <lib.h>, #include "myheader.h") be searched for?

Answer:

The header file lookup order is 1, 2, 3, (4) as shown below.

As an example,

test.c => test.h => sub.h

Regarding the lookup order of sub.h in case of multiple inclusions, the folder where test.c is located is referred to as "the same folder as the input file" and the folder where test.h is located is referred to as "the same folder as the currently opened file".

[ANSI-C Mode]
#include <file>:
1. The system include path folder
2. The user include path folder
3. The same folder as the input file (source file)
4. The same folder as the currently opened file (source/header file)

#include "file":
1. The same folder as the currently opened file (source/header file)
2. The user include path folder
3. The system include path folder
4. The same folder as the input file (source file)

[GNU-C/C99 Mode]
#include <file>:
1. The system include path folder
2. The user include path folder
3. The same folder as the input file (source file)

#include "file":
1. The same folder as the currently opened file (source/header file)
2. The user include path folder
3. The system include path folder
4. The same folder as the input file (source file)

[VC++ Mode]
#include <file>:
1. The user include path folder
2. The system include path folder
3. The same folder as the input file (source file)

#include "file":
1. The same folder as the currently opened file (source/header file)
2. The user include path folder
3. The system include path folder
4. The same folder as the input file (source file)


 

Related Technical Tips Search

Other technical tips in GAIO's web site can be searched for using the links below.

Search key word link: Include Path | Lookup Order
Technical Tips Google Search


Information Links