[cfe-dev] New user: Linux: undefined reference to fetestexcept
Fred J. Tydeman
tydeman at tybor.com
Mon Jul 18 08:20:34 PDT 2011
On Sat, 16 Jul 2011 20:47:26 -0700 Patrick Pelletier wrote:
>>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.
You are correct. Thanks. When I see -lm, I think math library,
which to me is just <math.h>. But, it is probably also <fenv.h>
and <complex.h>, and maybe others.
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (775) 358-9748 Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.
More information about the cfe-dev