Software Archive
Read-only legacy content
17061 Discussions

ld: cannort fimd -lm

Ren-Long_Y_
Beginner
296 Views

I was building a program with ifort, however at the lingking stage, it was reported that 'ld: cannot find -lm'

How to solve this?

0 Kudos
1 Reply
Ren-Long_Y_
Beginner
296 Views

It was solved by installing libf2c2, gfortran and gcc, turned out my kubuntu system is an unstable version so I had to change the sources to long term support.

sed -I 's/trusty/xenial/g' /etc/apt/sources.list

sudo apt-get update

sudo apt-get dist-upgrade

 

 

 

 

 

0 Kudos
Reply