- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need '.', a space and then the full path to 'compilervars.sh'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page