Menu

Can't Compile v0.6.4

Help
2016-08-27
2016-08-29
  • Joshua Pagnola

    Joshua Pagnola - 2016-08-27

    Trying to compile but getting this error.

    current values of user-set variables:
    DESTDIR ?=
    prefix ?= /usr/local
    exec_prefix ?= /usr/local
    OPTIMS ?= -march=native -mtune=native -Ofast
    WARNINGS ?= -Wall -Wextra -pedantic

    g++ PEngine/terrain.cpp -> PEngine/terrain.o
    In file included from ./include/pengine.h:197:0,
    from PEngine/terrain.cpp:8:
    ./include/hiscore1.h: In member function ‘bool HiScore1::readPlayerData(const string&, const string&)’:
    ./include/hiscore1.h:727:34: error: cannot convert ‘std::istringstream {aka std::cxx11::basic_istringstream<char>}’ to ‘bool’ in return
    GETLINE_SKIP_EMPTY_LINES(sspdata, ts);
    ^
    ./include/hiscore1.h:41:16: note: in definition of macro ‘GETLINE_SKIP_EMPTY_LINES’
    return InputStream; \ ^
    ./include/hiscore1.h:732:38: error: cannot convert ‘std::istringstream {aka std::
    cxx11::basic_istringstream<char>}’ to ‘bool’ in return
    GETLINE_SKIP_EMPTY_LINES(sspdata, ts);
    ^
    ./include/hiscore1.h:41:16: note: in definition of macro ‘GETLINE_SKIP_EMPTY_LINES’
    return InputStream; \ ^
    ./include/hiscore1.h:739:16: error: cannot convert ‘std::istringstream {aka std::__cxx11::basic_istringstream<char>}’ to ‘bool’ in return
    return sspdata;
    ^
    GNUmakefile:151: recipe for target 'PEngine/terrain.o' failed
    make: *** [PEngine/terrain.o] Error 1

     
  • Onsemeliot

    Onsemeliot - 2016-08-28

    Are you using GNU GCC 4.9?

     
  • Andrei

    Andrei - 2016-08-28

    A patch that fixes this problem is available. Please see link below for information and download.

    https://sourceforge.net/p/trigger-rally/patches/13/

     
  • Onsemeliot

    Onsemeliot - 2016-08-29

    Thank you for still keeping an eye on this discussion board and giving useful advice, Andrei.

     
  • Joshua Pagnola

    Joshua Pagnola - 2016-08-29

    Thank you. Everything works now.

     

Log in to post a comment.