error of CAMB: cannot find -lm

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
YinZhe Ma
Posts: 11
Joined: October 09 2008
Affiliation: University of KwaZulu-Natal

error of CAMB: cannot find -lm

Post by YinZhe Ma » November 25 2015

I am installing the new CAMB, but while I am compiling it, it always gives error:

ld: cannot find -lm
make: *** [camb] Error 1

Could anyone help me?

Thank you.

Mathew Madhavacheril
Posts: 3
Joined: February 01 2015
Affiliation: Princeton University
Contact:

error of CAMB: cannot find -lm

Post by Mathew Madhavacheril » December 04 2015

In the Makefile, try removing the fast option from:

Code: Select all

FFLAGS = -openmp -fast -W0 -WB -fpp2 -vec_report0
I use:

Code: Select all

FFLAGS = -openmp -ipo -O3 -W0 -WB -fpp2 -vec_report0
Might be related to:
https://software.intel.com/en-us/articl ... ot-find-lm

Post Reply