Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [matthijs@localhost TiRG_RAW_20110219]$ g++ tirg_raw.cpp
- tirg_raw.cpp: In function ‘int main()’:
- tirg_raw.cpp:9:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
- char *picName = "222t.raw";
- ^
- In file included from /usr/include/c++/4.8.1/vector:64:0,
- from trg.hpp:4,
- from tirg_raw.cpp:2:
- /usr/include/c++/4.8.1/bits/stl_vector.h: In instantiation of ‘void std::vector<_Tp, _Alloc>::_M_assign_dispatch(_Integer, _Integer, std::__true_type) [with _Integer = int; _Tp = std::vector<unsigned char>; _Alloc = std::allocator<std::vector<unsigned char> >]’:
- /usr/include/c++/4.8.1/bits/stl_vector.h:507:51: required from ‘void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = int; _Tp = std::vector<unsigned char>; _Alloc = std::allocator<std::vector<unsigned char> >]’
- trg.hpp:47:20: required from here
- /usr/include/c++/4.8.1/bits/stl_vector.h:1240:36: error: no matching function for call to ‘std::vector<std::vector<unsigned char> >::_M_fill_assign(int&, int&)’
- { _M_fill_assign(__n, __val); }
- ^
- /usr/include/c++/4.8.1/bits/stl_vector.h:1240:36: note: candidate is:
- In file included from /usr/include/c++/4.8.1/vector:69:0,
- from trg.hpp:4,
- from tirg_raw.cpp:2:
- /usr/include/c++/4.8.1/bits/vector.tcc:218:5: note: void std::vector<_Tp, _Alloc>::_M_fill_assign(std::size_t, const value_type&) [with _Tp = std::vector<unsigned char>; _Alloc = std::allocator<std::vector<unsigned char> >; std::size_t = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<unsigned char>]
- vector<_Tp, _Alloc>::
- ^
- /usr/include/c++/4.8.1/bits/vector.tcc:218:5: note: no known conversion for argument 2 from ‘int’ to ‘const value_type& {aka const std::vector<unsigned char>&}’
- In file included from /usr/include/c++/4.8.1/vector:64:0,
- from trg.hpp:4,
- from tirg_raw.cpp:2:
- /usr/include/c++/4.8.1/bits/stl_vector.h: In instantiation of ‘void std::vector<_Tp, _Alloc>::_M_assign_dispatch(_Integer, _Integer, std::__true_type) [with _Integer = int; _Tp = std::vector<short int>; _Alloc = std::allocator<std::vector<short int> >]’:
- /usr/include/c++/4.8.1/bits/stl_vector.h:507:51: required from ‘void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = int; _Tp = std::vector<short int>; _Alloc = std::allocator<std::vector<short int> >]’
- trg.hpp:148:26: required from here
- /usr/include/c++/4.8.1/bits/stl_vector.h:1240:36: error: no matching function for call to ‘std::vector<std::vector<short int> >::_M_fill_assign(int&, int&)’
- { _M_fill_assign(__n, __val); }
- ^
- /usr/include/c++/4.8.1/bits/stl_vector.h:1240:36: note: candidate is:
- In file included from /usr/include/c++/4.8.1/vector:69:0,
- from trg.hpp:4,
- from tirg_raw.cpp:2:
- /usr/include/c++/4.8.1/bits/vector.tcc:218:5: note: void std::vector<_Tp, _Alloc>::_M_fill_assign(std::size_t, const value_type&) [with _Tp = std::vector<short int>; _Alloc = std::allocator<std::vector<short int> >; std::size_t = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<short int>]
- vector<_Tp, _Alloc>::
- ^
- /usr/include/c++/4.8.1/bits/vector.tcc:218:5: note: no known conversion for argument 2 from ‘int’ to ‘const value_type& {aka const std::vector<short int>&}’
- In file included from /usr/include/c++/4.8.1/vector:64:0,
- from trg.hpp:4,
- from tirg_raw.cpp:2:
- /usr/include/c++/4.8.1/bits/stl_vector.h: In instantiation of ‘void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_Integer, _Integer, std::__true_type) [with _Integer = int; _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >]’:
- /usr/include/c++/4.8.1/bits/stl_vector.h:404:55: required from ‘std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = int; _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<int> >]’
- trg.hpp:150:56: required from here
- /usr/include/c++/4.8.1/bits/stl_vector.h:1166:59: error: no matching function for call to ‘std::vector<std::vector<int> >::_M_fill_initialize(std::vector<std::vector<int> >::size_type, int&)’
- _M_fill_initialize(static_cast<size_type>(__n), __value);
- ^
- /usr/include/c++/4.8.1/bits/stl_vector.h:1166:59: note: candidate is:
- /usr/include/c++/4.8.1/bits/stl_vector.h:1212:7: note: void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]
- _M_fill_initialize(size_type __n, const value_type& __value)
- ^
- /usr/include/c++/4.8.1/bits/stl_vector.h:1212:7: note: no known conversion for argument 2 from ‘int’ to ‘const value_type& {aka const std::vector<int>&}’
- /usr/include/c++/4.8.1/bits/stl_vector.h: In instantiation of ‘void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_Integer, _Integer, std::__true_type) [with _Integer = int; _Tp = std::vector<trg::Rgb>; _Alloc = std::allocator<std::vector<trg::Rgb> >]’:
- /usr/include/c++/4.8.1/bits/stl_vector.h:404:55: required from ‘std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = int; _Tp = std::vector<trg::Rgb>; _Alloc = std::allocator<std::vector<trg::Rgb> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<trg::Rgb> >]’
- tirg_raw.cpp:16:51: required from here
- /usr/include/c++/4.8.1/bits/stl_vector.h:1166:59: error: no matching function for call to ‘std::vector<std::vector<trg::Rgb> >::_M_fill_initialize(std::vector<std::vector<trg::Rgb> >::size_type, int&)’
- _M_fill_initialize(static_cast<size_type>(__n), __value);
- ^
- /usr/include/c++/4.8.1/bits/stl_vector.h:1166:59: note: candidate is:
- /usr/include/c++/4.8.1/bits/stl_vector.h:1212:7: note: void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<trg::Rgb>; _Alloc = std::allocator<std::vector<trg::Rgb> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<trg::Rgb>]
- _M_fill_initialize(size_type __n, const value_type& __value)
- ^
- /usr/include/c++/4.8.1/bits/stl_vector.h:1212:7: note: no known conversion for argument 2 from ‘int’ to ‘const value_type& {aka const std::vector<trg::Rgb>&}’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement