[previous] 0808 [next] [Q] '#include "%s"' causes itself to be included recursively. QA·C terminates execution after 8 occurrences.
QAC configuration

You have constructed a header file which directly or indirectly includes itself. This probably indicates some confusion in the design of the include file system.

"Repeated inclusion" of a header file is not unreasonable providing the contents of the file are subject to conventional "include guard" protection.

For example:


/**************/
/* File: hd1.h*/
/**************/
#ifndef MYHEADER
#define MYHEADER

/* Header file content ... */

#endif

/**************/
/* File: hd2.h*/
/**************/

#include "hd2.h"

/* Header file content */

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents