home Forums # Technical Support error:\\\'fl::nan\\\' defined but not used

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2266
    Unknown
    Member

    Hi,

    I am experimenting installation problems in Ubuntu 16.04 LTS.
    After giving the command

    ./build.sh

    I obtain the next messages:

    — Build files have been written to: /home/oross/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/release
    [ 1%] Building CXX object CMakeFiles/fl-shared.dir/src/defuzzifier/IntegralDefuzzifier.cpp.o
    In file included from /home/oross/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/./fl/defuzzifier/Defuzzifier.h:30:0,
    from /home/oross/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/./fl/defuzzifier/IntegralDefuzzifier.h:28,
    from /home/oross/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/src/defuzzifier/IntegralDefuzzifier.cpp:25:
    /home/oross/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/./fl/fuzzylite.h:103:18: error: ‘fl::nan’ defined but not used [-Werror=unused-variable]
    const scalar nan = std::numeric_limits<scalar>::quiet_NaN();
    ^
    /home/oross/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/./fl/fuzzylite.h:104:18: error: ‘fl::inf’ defined but not used [-Werror=unused-variable]
    const scalar inf = std::numeric_limits<scalar>::infinity();
    ^
    cc1plus: all warnings being treated as errors
    CMakeFiles/fl-shared.dir/build.make:134: recipe for target ‘CMakeFiles/fl-shared.dir/src/defuzzifier/IntegralDefuzzifier.cpp.o’ failed
    make[2]: *** [CMakeFiles/fl-shared.dir/src/defuzzifier/IntegralDefuzzifier.cpp.o] Error 1
    CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/fl-shared.dir/all’ failed
    make[1]: *** [CMakeFiles/fl-shared.dir/all] Error 2
    Makefile:127: recipe for target ‘all’ failed
    make: *** [all] Error 2

    FINISHED: all
    ******************************

    Please help me to solve this problem.

    Best regards,

    Oscar

    #2267

    Hi,

    thank you for your post.

    To address the issue you are experiencing, please download fuzzylite 5.1 from the github repository: https://github.com/fuzzylite/fuzzylite/ (release branch).

    or clicking the link below

    https://github.com/fuzzylite/fuzzylite/archive/release.zip

    Thanks!

    Let me know if it works for you.

    Cheers.

    #2273
    Unknown
    Member

    Dear Juan Rada,

    Thank you for your help. Now everything is working fine.

    Best regards,

    Oscar

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.