std=c++0x compile failure

James Michael DuPont avatarJames 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.