I tried to use it to comiple main.c which calls some fortran subcode *.F . It was fine when I used Intel 8.0 to compile them using ipo link option. But, when I use 11.1 to do the same thing, the link process stopped:
ipo: warning #11020 : unresolved AAA_
Referenced in /tmp/opo_icce8LP1S.o
in Funtion 'BBB_.':
ipo_out.c: ( ) : undefined reference to 'AAA_'
make: *** [codename] error 1
What is wrong ? Do I need to change the code for 11.1 ?
Looking forward to our help.
If you have recompiled all source code with the same compiler version, what worked between ifort 8 and icc 8 should work also with the new version. ipo requires both the C and Fortran used for all objects to have identical versions.
ifort 8 didn't support iso_c_binding, which is the standard way to avoid non-portable interfacing between C and Fortran.
Thanks for your help.
I did recompile all source codes to get the posted error message by "deleting *.o" before run the
make file. And I am using 11.1 for both icc and ifort.
Can you give me more instructions ? or Should I disclose more details ?
Thank you in advance.