[Trilinos-Users] Sacado compilation error

Simone Rossi, Ph.D. simone.rossi at duke.edu
Fri Oct 3 10:47:27 MDT 2014


Dear all,

I started enabling the Sacado package when compiling Trilinos.

When compiling with clang, I always get the following error


Building CXX object packages/sacado/test/tradoptest/CMakeFiles/Sacado_hesopcheck.dir/hesopcheck.cpp.o
In file included from /TPL/trilinos-11.8.1-Source/packages/sacado/test/tradoptest/hesopcheck.cpp:36:
In file included from /TPL/trilinos-11.8.1-Source/packages/sacado/src/Sacado_trad.hpp:39:
In file included from /TPL/trilinos-11.8.1-Source/packages/sacado/src/Sacado_trad_Traits.hpp:35:
In file included from /TPL/trilinos-11.8.1-Source/packages/sacado/src/Sacado_Traits.hpp:56

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:664:35: error:
      no matching function for call to 'fabs'
abs(double __x) _NOEXCEPT {return fabs(__x);}?


I temporarily  solved this issue by including in Sacado_MathFunctions.hpp, the c math library, that is:

#include <cmath>

I got this compilation error in several versions of Trilinos,
but I do not know if this is the best way to solve this issue.
Let me know if you have any suggestion
Thank you very much,
All the best,
Simone



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20141003/831fc456/attachment.html>


More information about the Trilinos-Users mailing list