We need to back down to the V6 version of the Intel compiler to be compatible with some other code. We had
been compiling fine under V7, but we are having very basic failures under V6 that I don't understand.
First of our kernel is v2.14.18-3 and our glibc is 2.2.5-34.
We are running version 18.104.22.1684-COM Build 20020822Z of the compiler.
Our code is C++ code in a .c file (I didn't write it, I'm just trying to build it). When I first tried to compile it using icpc the errors indicated it wasn't compiling as C++ code, so I added the -D__cplusplus.
Now, we are getting errors in the standard includes.
For example, I am compiling a module whose first include is
The error output (with the -H option) is:
icpc -H -D__cplusplus file.c -o file
/usr/include/stdio.h(30): error: expected an identifier
/usr/include/stdio.h(30): error: expected a ";"
and it goes on and on. It appears that stuff that could be defined in cdefs.h isn't happening.
It hasn't even gotten to any of our code yet.
Something basic is wrong here, any help would be appreciated.