Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
20 Views

icc not creating a.out file

Yesterday when I ran the following line in terminal: icc -mkl -c -xAVX optimizedV4.c

I was able to get back: optimizedV4.o 

and: a.out

Today when I edited the c code, simply changing a loop variable, I only got the object file. No errors were thrown, except when typing ./a.out that there is no such file or directory.

Update:

This happened after I tried calling the compiler through a python script:

from subprocess import call

call(["icc", "-mkl", "-c", "-xAVX", "optimizedV4.c"])

I since uninstalled parallel studio and reinstalled it, I even copied the code into a file in /opt/intel/ and tried to compile it there, but I still did not get an a.out file from doing so. (No errors were given either, and the .o file was still created just fine.)

0 Kudos
3 Replies
Highlighted
Beginner
20 Views

Note: this happened after I ran a python program with:

from subprocess import call

call(["icc", "-mkl", "-c", "-xAVX", "optimizedV4.c"])

0 Kudos
Highlighted
Beginner
20 Views

Note (2): I uninstalled parallel studio and reinstalled it, then ran that command without the -mkl, and I tried running the command inside the /opt/intel directory itself calling the same code from my personal directory and using sudo to make sure all permissions were satisfied.

I still got the same effect of no error messages being thrown, but only optimizedV4.o was created, not a.out!

0 Kudos
Highlighted
Moderator
20 Views

-c is to compile to object (.o) only.

0 Kudos