Boost logo

Boost :

From: Jose (jmalv04_at_[hidden])
Date: 2006-09-14 13:36:40


Hi,

I am using the latest GIL for the Boost review.

Trying to compile the simplest example below and I get the compiler errors
further below. Can you give me some ideas what's wrong ?

I am running FC4 x86_64 with Boost 1.33

thanks

===========================================================================

#define NO_ASL
#include <gil/extension/dynamic_image/dynamic_image_all.hpp>
#include <gil/extension/io/jpeg_dynamic_io.hpp>
using namespace GIL;
int main() {
        rgb8_image_t img;
        jpeg_read_image("test.jpg", img);
        jpeg_write_view("test_reverted.jpg",
rotated180_view(const_view(img)));
        return 0;
}

===========================================================================

[root_at_server im]# make
g++ -g -O6 -Wall -lpthread -L/usr/local/lib64
-I/usr/local/include/boost-1_33 -I. -o test test.cpp
./gil/extension/dynamic_image/../../core/locator.hpp: In member function
'ptrdiff_t gil::membased_2d_locator<I>::y_distance_to(const
gil::membased_2d_locator<I>&, typename
gil::pixel_2d_locator_base<gil::membased_2d_locator<S_IT>, typename
gil::pixel_iterator_traits<PIT>::base_t, S_IT>::x_coord_t) const':
./gil/extension/dynamic_image/../../core/locator.hpp:290: error: invalid
application of 'sizeof' to incomplete type
'boost::STATIC_ASSERTION_FAILURE<false>'
./gil/extension/io/jpeg_io_private.hpp: In member function 'void
gil::detail::jpeg_reader::read_image(IMAGE&) [with IMAGE =
gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*>
> >, std::allocator<unsigned char> >]':
./gil/extension/io/jpeg_io.hpp:90: instantiated from 'void
gil::jpeg_read_image(const char*, IMAGE&) [with IMAGE = gil::rgb8_image_t]'
test.cpp:10: instantiated from here
./gil/extension/io/jpeg_io_private.hpp:116: error: no matching function for
call to
'resize_clobber_image(gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*>
> >, std::allocator<unsigned char> >&, gil::point2<int>)'
./gil/extension/dynamic_image/../../core/image.hpp:205: note: candidates
are: void gil::resize_clobber_image(IMG&, const typename IMG::point_t&)
[with IMG =
gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*>
> >, std::allocator<unsigned char> >]
./gil/extension/io/jpeg_io_private.hpp: In member function 'void
gil::detail::jpeg_reader::apply(const VIEW&) [with VIEW =
gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*>
> >]':
./gil/extension/io/jpeg_io_private.hpp:117: instantiated from 'void
gil::detail::jpeg_reader::read_image(IMAGE&) [with IMAGE =
gil::image<gil::image_view<gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*>
> >, std::allocator<unsigned char> >]'
./gil/extension/io/jpeg_io.hpp:90: instantiated from 'void
gil::jpeg_read_image(const char*, IMAGE&) [with IMAGE = gil::rgb8_image_t]'
test.cpp:10: instantiated from here
./gil/extension/io/jpeg_io_private.hpp:103: error: no match for 'operator!='
in '(+ view)->gil::image_view<L>::dimensions [with LOC =
gil::membased_2d_locator<gil::pixel_step_iterator<gil::rgb8_pixel_t*> >]()
!= gil::detail::jpeg_reader::get_dimensions() const()'
make: *** [test] Error 1


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk