Boost logo

Boost :

Subject: Re: [boost] [gil::io_new] Help with gcc compiler
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2012-07-02 23:55:33


On 02/07/2012 11:32 p.m., Christian Henning wrote:
> Hi there,
>
> I'm in the process of making my gil extension ready for inclusion. The
> code is now stable and I'm trying to get gcc/clang to work. Since I'm
> no expert with gcc I would like to ask for some help with various
> compiler errors.
> -------------------
> #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() );

Aren't you trying to concatenate two char pointers there (a pointer and
an array, actually)? Neither of those is std::string.

Agustín K-ballo Bergé.-
http://fusionfenix.com


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