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

ifort + x86 64

puthen
Beginner
451 Views
Hi,
I am using intel fortan compiler (ifort) to compile on x86 64bit machine.
while linking it gives the following error:
ld: cannot find -lm
and then the compilation stops.
when i give paths as -L /usr/lib and -L/usr/lib64, it says:
ld: skipping incompatible /usr/lib64/libm.so when searching for -lm
ld: skipping incompatible /usr/lib64/libm.a when searching for -lm
ld: cannot find -lm
Can anyone tell me if any library or package is missing, that also needs to be installed. The OS is SUSE Linux? After installing, which paths need to be specified in the makefile/while compiling?
A quick reply will be highly appreciated.
thanks
Amitkumar
0 Kudos
1 Reply
Steven_L_Intel1
Employee
451 Views
Are you using the compiler for EM64T? That is a separate download from Intel Premier Support.

Either you are using a 32-bit compiler or it is being asked to look at 32-bit libraries. Installing the 64-bit EM64T compiler should take care of this. See the compiler release notes for installation details.
0 Kudos
Reply