[cfe-dev] New user: Linux: undefined reference to fetestexcept

Patrick Pelletier ppelletier at oblong.com
Sat Jul 16 20:47:26 PDT 2011

Fred J. Tydeman wrote:
> I am getting undefined references to both
> fetestexcept and feclearexcept
> Are there headers or libraries that I need to tell
> the compiler about?

You probably need "-lm".  Not a clang-specific thing, though; you'd need 
that for gcc, too.


More information about the cfe-dev mailing list