Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. Compiling: main.cpp
  2. C:\chhenning\code_blocks\gil_io_test\main.cpp: In function 'int main()':
  3. C:\chhenning\code_blocks\gil_io_test\main.cpp:14: error: invalid operands of types 'const char*' and 'const char [21]' to binary 'operator+'
  4. In file included from C:\gil_contributions\gil_2/boost/gil/extension/io_new/bmp_read.hpp:35,
  5. from C:\gil_contributions\gil_2/boost/gil/extension/io_new/bmp_all.hpp:22,
  6. from C:\chhenning\code_blocks\gil_io_test\main.cpp:1:
  7. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/read_image.hpp: In function 'void boost::gil::read_image(const String&, Image&, const FormatTag&, typename boost::enable_if<boost::mpl::and_<boost::gil::detail::is_supported_path_spec<String>, boost::gil::is_format_tag<FormatTag>, boost::gil::is_read_supported<typename boost::gil::get_pixel_type<typename Image::view_t>::type, FormatTag>, mpl_::bool_<true>, mpl_::bool_<true> >, void>::type*) [with String = const char*, Image = boost::gil::rgb8_image_t, FormatTag = boost::gil::bmp_tag]':
  8. C:\chhenning\code_blocks\gil_io_test\main.cpp:13: instantiated from here
  9. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/read_image.hpp:180: error: no matching function for call to 'read_image(boost::gil::reader<boost::gil::detail::file_stream_device<boost::gil::bmp_tag>, boost::gil::bmp_tag, boost::gil::detail::read_and_no_convert>, boost::gil::image<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t>, boost::mpl::range_c<int, 0, 3> > >, false, std::allocator<unsigned char> >&)'
  10. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/read_image.hpp:46: note: candidates are: void boost::gil::read_image(Reader&, Image&, typename boost::enable_if<boost::mpl::and_<boost::gil::detail::is_reader<Reader>, boost::gil::is_format_tag<typename Reader::format_tag_t>, boost::gil::is_read_supported<typename boost::gil::get_pixel_type<typename Image::view_t>::type, typename Reader::format_tag_t>, mpl_::bool_<true>, mpl_::bool_<true> >, void>::type*) [with Reader = boost::gil::reader<boost::gil::detail::file_stream_device<boost::gil::bmp_tag>, boost::gil::bmp_tag, boost::gil::detail::read_and_no_convert>, Image = boost::gil::image<boost::gil::pixel<unsigned char, boost::gil::layout<boost::mpl::vector3<boost::gil::red_t, boost::gil::green_t, boost::gil::blue_t>, boost::mpl::range_c<int, 0, 3> > >, false, std::allocator<unsigned char> >]
  11. In file included from C:\gil_contributions\gil_2/boost/gil/extension/io_new/bmp_read.hpp:31,
  12. from C:\gil_contributions\gil_2/boost/gil/extension/io_new/bmp_all.hpp:22,
  13. from C:\chhenning\code_blocks\gil_io_test\main.cpp:1:
  14. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/make_reader.hpp: In function 'typename boost::gil::get_reader<String, FormatTag, ConversionPolicy, void>::type boost::gil::make_reader(const String&, const boost::gil::image_read_settings<FormatTag>&, const ConversionPolicy&, typename boost::enable_if<boost::mpl::and_<boost::gil::detail::is_supported_path_spec<String>, boost::gil::is_format_tag<FormatTag>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >, void>::type*) [with String = const char*, FormatTag = boost::gil::bmp_tag, ConversionPolicy = boost::gil::detail::read_and_no_convert]':
  15. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/make_reader.hpp:167: instantiated from 'typename boost::gil::get_reader<String, FormatTag, ConversionPolicy, void>::type boost::gil::make_reader(const String&, const FormatTag&, const ConversionPolicy&, typename boost::enable_if<boost::mpl::and_<boost::gil::detail::is_supported_path_spec<String>, boost::gil::is_format_tag<FormatTag>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >, void>::type*) [with String = const char*, FormatTag = boost::gil::bmp_tag, ConversionPolicy = boost::gil::detail::read_and_no_convert]'
  16. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/read_image.hpp:180: instantiated from 'void boost::gil::read_image(const String&, Image&, const FormatTag&, typename boost::enable_if<boost::mpl::and_<boost::gil::detail::is_supported_path_spec<String>, boost::gil::is_format_tag<FormatTag>, boost::gil::is_read_supported<typename boost::gil::get_pixel_type<typename Image::view_t>::type, FormatTag>, mpl_::bool_<true>, mpl_::bool_<true> >, void>::type*) [with String = const char*, Image = boost::gil::rgb8_image_t, FormatTag = boost::gil::bmp_tag]'
  17. C:\chhenning\code_blocks\gil_io_test\main.cpp:13: instantiated from here
  18. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/make_reader.hpp:57: error: dependent-name 'boost::gil::get_reader::type' is parsed as a non-type, but instantiation yields a type
  19. C:\gil_contributions\gil_2/boost/gil/extension/io_new/detail/make_reader.hpp:57: note: say 'typename boost::gil::get_reader::type' if a type is meant
  20. Process terminated with status 1 (0 minutes, 13 seconds)
  21. 3 errors, 0 warnings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement