Boost logo

Boost :

Subject: Re: [boost] [gil::io_new] Help with gcc compiler
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2012-07-03 05:38:55


On 3 July 2012 03:32, Christian Henning <chhenning_at_[hidden]> wrote:
> Hi there,
>
> I'm in the process of making my gil extension ready for inclusion.

Great news Christian!

> Could someone get the latest from here:
>
> http://gil-contributions.googlecode.com/svn/trunk/gil_2
>
> and try to compile the following code:
>
> -------------------
> #include <boost/gil/extension/io_new/bmp_all.hpp>
>
> using namespace std;
> using namespace boost::gil;
>
> int main()
> {
> {
> const char* bmp_filename = "";
> const char* bmp_out = "";
>
> rgb8_image_t img;
> read_image( bmp_filename, img, bmp_tag() );
> write_view( bmp_out + "all_formats_test.bmp", view( img ), bmp_tag() );
----------------------------------^^^^^^^^^^^^^^^^^^

Does it compile for you?
Even with Visual C++ 2010, you should have seen:

error C2110: '+' : cannot add two pointers

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net

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