Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Undefined reference to _powr8i4

gandalf85p
Beginner
1,848 Views
I'm getting errors with the symbol __powr8i4. Which library is this in? I searched around and it seems to be in libmmd.dll in windows, but i can't find this anywhere in my unix directories. I'm linked against -lifcore-lirc -ldl. I'm using gcc, g++, and gfortran for all my compiling and linking, since that's how the makefiles were given to me and i'm trying to be consistent. Thanks for any help.
0 Kudos
3 Replies
Xiaoping_D_Intel
Employee
1,848 Views
It is inside libimf from Intel Fortran compiler. Is there any file in your project compiled by ifort?
0 Kudos
TimP
Honored Contributor III
1,848 Views
If you compile with a more recent compiler than the library you link against (e.g. you have an old dynamic library directory active at run time), you may have references to ifort intrinsics not present in the old library. When you use ifort to link, the necessary library references will appear automatically in the ld script. If you use another tool to drive the link, you must specify all of them.
0 Kudos
gandalf85p
Beginner
1,849 Views
OK, got it. None of the files are compiled with ifort, they all use gfortran, so I have to specifically link against all the libraries. The -limf flag worked. Thanks a lot.
0 Kudos
Reply