Boost logo

Boost Users :

Subject: [Boost-users] [gil] Unexplainable compiler error
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2009-03-25 20:55:17


Below is the compiler error that I'm getting in Visual Studio 2008:
C:\IT\work\redsword\third_party\boost\1_38_0\boost/gil/image.hpp(119) :
error C2039: '_view' : is not a member of 'boost::gil::image_view<Loc>'
        with
        [
            Loc=boost::gil::rgba8c_loc_t
        ]
        ..\..\..\..\components\libs\renderer\source\Image.cpp(44) : see
reference to function template instantiation
'boost::gil::image<Pixel,IsPlanar,Alloc>
&boost::gil::image<Pixel,IsPlanar,Alloc>::operator
=<boost::gil::image_view<Loc>>(const Img &)' being compiled
        with
        [
            Pixel=boost::gil::rgba8_pixel_t,
            IsPlanar=false,
            Alloc=std::allocator<unsigned char>,
            Loc=boost::gil::rgba8c_loc_t,
            Img=boost::gil::image_view<boost::gil::rgba8c_loc_t>
        ]

And the code that it is compiling:

#include <boost/gil/image_view.hpp>
#include <boost/gil/image.hpp>
#include <boost/gil/typedefs.hpp>

    Image::Image(
        unsigned char const* buffer,
        unsigned int width,
        unsigned int height,
        unsigned int bitsPerPixel,
        int pitch
        )
    {
        // Provide a pitch the exact width of the image if no
        // explicit pitch was provided.
        if( !pitch )
        {
            pitch = width * bitsPerPixel;
        }

        using namespace boost::gil;

        m_imageData = interleaved_view( width, height,
reinterpret_cast<rgba8_pixel_t const*>( buffer ), pitch );
    }

I'm still new to boost::gil and it's very hard to learn. Can anyone guide me
in the right direction as to how to resolve this compiler error?



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net