1. Coin3D
  2. Coin
Issue #21 resolved

std=c++0x compile failure

James Michael DuPont
created an issue

g++ -DHAVE_CONFIG_H -I../../include -I../../include -I../../src -I../../src -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -Wall -std=c++0x -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -\ fno-builtin -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT ScXMLIfElt.lo -MD -MP -MF .deps/ScXMLIfElt.Tpo -c ScXMLIfElt.cpp -fPIC -DPIC -o .libs/ScXMLIfElt.o /usr/include/c++/4.3/ext/new_allocator.h: In member function ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Tp, _Args&& ...) [with _Args = long int, _Tp = std::vector<ScXMLExecutableElt, std::a\ llocator<ScXMLExecutableElt> >]’: /usr/include/c++/4.3/bits/stl_vector.h:703: instantiated from ‘void std::vector<_Tp, _Alloc>::push_back(_Args&& ...) [with _Args = long int, _Tp = std::vector<ScXMLExecutableElt, std::allocator\ <ScXMLExecutableElt> >, _Alloc = std::allocator<std::vector<ScXMLExecutableElt, std::allocator<ScXMLExecutableElt> >>]’ ScXMLIfElt.cpp:284: instantiated from here /usr/include/c++/4.3/ext/new_allocator.h:114: error: invalid conversion from ‘long int’ to ‘std::vector<ScXMLExecutableElt, std::allocator<ScXMLExecutableElt> >’ make[2]: ** [ScXMLIfElt.lo] Error 1

Comments (2)

  1. Log in to comment