Menu

#102 Compile error with GCC on latest master

fixed
seebk
None
2018-06-28
2018-06-19
letmaik
No

https://travis-ci.org/letmaik/lensfunpy/jobs/394229394#L548-L550

[ 78%] Building CXX object libs/lensfun/CMakeFiles/lensfun.dir/mod-pc.cpp.o /lensfunpy/external/lensfun/libs/lensfun/mod-pc.cpp:75:12: error: ‘isnan’ is already declared in this scope using std::isnan;

The lensfun commit I'm building with is c44b811f (latest master as of this post).

Discussion

  • seebk

    seebk - 2018-06-28

    I cannot reproduce this, any idea how this can happen? I could not find any other place where std::isnan is declared or loaded into the global scope... It works for me on GCC 6.3.

     
  • letmaik

    letmaik - 2018-06-28

    An easy solution would be to use the qualified std::isnan and removing using std::isnan;.

     
  • seebk

    seebk - 2018-06-28

    Ok, thanks for your help. I will use your proposed change.

     
  • seebk

    seebk - 2018-06-28
    • status: open --> fixed
    • assigned_to: seebk