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>'
        ..\..\..\..\components\libs\renderer\source\Image.cpp(44) : see
reference to function template instantiation
=<boost::gil::image_view<Loc>>(const Img &)' being compiled
            Alloc=std::allocator<unsigned char>,

And the code that it is compiling:

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

        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, kalb at, bjorn.karlsson at, gregod at, wekempf at