confilct with abs function

38 views
Skip to first unread message

Elie Maalouf

unread,
Jul 19, 2017, 9:40:03 AM7/19/17
to libflame-discuss
Hi, my main objective is to use libflame in arm after cross compilation. however i compiled it for Linux to test and by simply including FLAME.h i get the following error:
cmath:87:16: error: conflicting declaration of C function 'constexpr float std::abs(float)'

what to do in order to fix that. thank you.

Field G. Van Zee

unread,
Jul 19, 2017, 7:58:49 PM7/19/17
to libflame...@googlegroups.com
Hi Elie,

It's seems to be a naming conflict with a macro defined in FLA_f2c.c, which is
used by the code that was generated when converting LAPACK Fortran code to C.

I will try to do some search-and-replace so that the "abs" identifier does not
appear anywhere in the code.

Field

Field G. Van Zee

unread,
Jul 20, 2017, 1:33:39 PM7/20/17
to libflame...@googlegroups.com
Elie,

Try commit 103fd21. I think I've fixed the issue.

Thanks for your feedback.

Field
Reply all
Reply to author
Forward
0 new messages