Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

"compilervars.sh ia32" doesn't work?

anta40
Beginner
290 Views
I'm using 64-bit Arch Linux, and just installed the non-commersial version of Intel C++ 2011 XE (c_studio_xe_2011_update2.tgz, around 1.4 GB, which does 32 & 64 bit). In /opt/intel/bin, I tried "./compilervars.sh ia32", and when I compiled a simple code:
#include
int main(){
printf("ICC test...\\n");
return 0;
}
Then I tried to use "-m32" paramater, and the result was:
catastrophic error: Compiler configuration problem encountered. The expected target architecture compiler is missing (12.0-ia32 != 12.0-intel64)
compilation aborted for test.c (code 1)
What should I do, so I can generate 32-bit code properly?
0 Kudos
2 Replies
mecej4
Honored Contributor III
290 Views
You need '.', a space and then the full path to 'compilervars.sh'.
0 Kudos
TimP
Honored Contributor III
290 Views
You should cd to a user owned directory where you have permissions to read and write files, then, as mecej4 said, source the compilervars script. The compiler won't work for compiling in its own installation directory; at least not with standard permission settings.
0 Kudos
Reply