Community
cancel
Showing results for 
Search instead for 
Did you mean: 
tydeman
Beginner
121 Views

__PURE_INTEL_C99_HEADERS__

It appears that I need:

#undef __PURE_SYS_C99_HEADERS__
#define __PURE_INTEL_C99_HEADERS__

to cause the Intel headers to NOT include any of the gcc headers
on a Linux system. I need this as the gcc headers have bugs.

Do any of the icc command line options cause the gcc headers
to be skipped? Or, do I need to do the above C preprocessor
statements in my code?
0 Kudos
4 Replies
Feilong_H_Intel
Employee
121 Views

Hi tydeman,


Does -nostdinc fulfill your needs?


-nostdinc

Do not search the standard system directories for header files. Only the directories you have specified with -I options (and the directory of the current file, if appropriate) are searched.


Thanks,
Feilong

tydeman
Beginner
121 Views

I believe not. I think that would disable both the gcc headers and the intel headers.
Feilong_H_Intel
Employee
121 Views

That's true. How about -isystem option? It adds directory to the start of the system include path.

icc -c -nostdinc -isystem /opt/intel/Compiler/11.1/072/include a.c

Thanks,
Feilong
tydeman
Beginner
121 Views

That looks like it will work.

My #undef and #define and your changing the system headers appear to be about the same as a workaround of the gcc headers.

Thanks.
Reply