- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page