Menu

Won't compile in GNU

Help
Vita
2016-04-23
2016-04-24
  • Vita

    Vita - 2016-04-23

    vita@GNUvita ~/Escritorio/trigger-rally-0.6.3/src $ make

    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/render.cpp -> PEngine/render.o
    In file included from ./include/pengine.h:202:0,
    from PEngine/render.cpp:7:
    ./include/codriversigns.h: In member function ‘void PCodriverSigns::set(const string&, float)’:
    ./include/codriversigns.h:85:54: error: no matching function for call to ‘std::vector<std::basic_string<char> >::erase(std::vector<std::basic_string<char> >::const_iterator, gnu_cxx::normal_iterator<const std::basic_string<char="">, std::vector<std::basic_string<char> > >)’
    vnotes.erase(vnotes.cbegin(), cut_end + 1);
    ^
    ./include/codriversigns.h:85:54: note: candidates are:
    In file included from /usr/include/c++/4.8/vector:69:0,
    from ./include/pengine.h:15,
    from PEngine/render.cpp:7:
    /usr/include/c++/4.8/bits/vector.tcc:134:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = std::basic_string<char>; _Alloc = std::allocator<std::basic_string<char> >; std::vector<_Tp, _Alloc>::iterator = gnu_cxx::normal_iterator<std::basic_string<char>, std::vector<std::basic_string<char> > >; typename std::_Vector_base<_Tp, _Alloc>::pointer = std::basic_string<char>]
    vector<_Tp, _Alloc>::
    ^
    /usr/include/c++/4.8/bits/vector.tcc:134:5: note: candidate expects 1 argument, 2 provided
    /usr/include/c++/4.8/bits/vector.tcc:146:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = std::basic_string<char>; _Alloc = std::allocator<std::basic_string<char> >; std::vector<_Tp, _Alloc>::iterator = gnu_cxx::normal_iterator<std::basic_string<char>, std::vector<std::basic_string<char> > >; typename std::_Vector_base<_Tp, _Alloc>::pointer = std::basic_string<char>]
    vector<_Tp, _Alloc>::
    ^
    /usr/include/c++/4.8/bits/vector.tcc:146:5: note: no known conversion for argument 1 from ‘std::vector<std::basic_string<char> >::const_iterator {aka gnu_cxx::normal_iterator<const std::basic_string<char="">
    , std::vector<std::basic_string<char> > >}’ to ‘std::vector<std::basic_string<char> >::iterator {aka gnu_cxx::normal_iterator<std::basic_string<char>, std::vector<std::basic_string<char> > >}’
    make:
    ** [PEngine/render.o] Error 1

     
  • Andrei

    Andrei - 2016-04-23

    The building documentation for 0.6.3 is wrong in that GNU GCC 4.8 is not sufficiently new. GNU GCC 4.9 is required to build 0.6.3.

    What version of GNU GCC are you using? You need 4.9 or newer.

     
  • Vita

    Vita - 2016-04-24

    Ahhhh, I am using 4.8, now I understan why it won't compile. Just outdated documentation. Thanks.

     

Log in to post a comment.