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

Coarrays: undefined reference to for_rtl_ICAF_LAUNCH

Hello,

I am trying to port a coarray fortran application from Windows to Linux (Ubuntu 16.04). This application compiles and works fine under Windows. I am using the Intel Fortran 19 Update 4. I applied all the compiler flags that were set on the Windows version including -coarray and -corray-num-images=10. Under Linux, when I try to compile, I get the following error:

Iwfm_f2.f90:(.text+0x76eb): undefined reference to `for_rtl_ICAF_LAUNCH'

An internet search turned nothing on this error. Can somebody let me know what I might be doing wrong?

Thanks,

Jon 

0 Kudos
3 Replies
Highlighted
Black Belt
3 Views

You get this when you try to

You get this when you try to link. Are you supplying the -coarray option on the ifort command that does the linking? The problem is missing a library (-licaf).

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
Beginner
3 Views

Thanks, Steve. Providing the

Thanks, Steve. Providing the -coarray flag during linking solved the problem. 

Jon

0 Kudos
Highlighted
Black Belt
3 Views

On Windows, the compiler can

On Windows, the compiler can put in object records that name libraries to search, but Linux doesn't have that feature, so you need to make sure that you supply the same compile options on the link step as some of them specify libraries to use.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos