[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pngpp-devel] Png++ on Windows/ Visual C++ 2008 Express edition
From: |
salmanmanekia |
Subject: |
Re: [pngpp-devel] Png++ on Windows/ Visual C++ 2008 Express edition |
Date: |
Mon, 10 Sep 2012 21:38:33 +0300 |
Hi Alex,
I have done that but it is throwing some errors. For example, first it was
throwing byte error code from config.hpp because of elifdef (__WIN32), so I
remove the underscores and moved forward. Now it is throwing (see the last few
lines for the error). I have no idea whatsoever of how to solve it.
c:\png++-0.2.5\writer.hpp(76) : warning C4355: 'this' : used in base member
initializer list
1> c:\png++-0.2.5\writer.hpp(74) : while compiling class template member
function 'png::writer<ostream>::writer(ostream &)'
1> with
1> [
1> ostream=std::ofstream
1> ]
1> c:\png++-0.2.5\generator.hpp(131) : see reference to class template
instantiation 'png::writer<ostream>' being compiled
1> with
1> [
1> ostream=std::ofstream
1> ]
1> c:\png++-0.2.5\image.hpp(280) : see reference to function template
instantiation 'void
png::generator<pixel,pixgen,info_holder,interlacing_supported>::write<ostream>(ostream
&)' being compiled
1> with
1> [
1> pixel=png::rgba_pixel,
1> pixgen=png::image<png::rgba_pixel>::pixel_generator,
1> info_holder=png::image_info_ref_holder,
1> interlacing_supported=true,
1> ostream=std::ofstream
1> ]
1> c:\png++-0.2.5\image.hpp(262) : see reference to function template
instantiation 'void png::image<pixel>::write_stream<std::ofstream>(ostream &)'
being compiled
1> with
1> [
1> pixel=png::rgba_pixel,
1> ostream=std::ofstream
1> ]
1> c:\png++-0.2.5\image.hpp(255) : while compiling class template member
function 'void png::image<pixel>::write(const char *)'
1> with
1> [
1> pixel=png::rgba_pixel
1> ]
1> c:\users\salman\documents\visual studio
2008\projects\rightware\rightware\rightware.cpp(36) : see reference to class
template instantiation 'png::image<pixel>' being compiled
1> with
1> [
1> pixel=png::rgba_pixel
1> ]
1>c:\png++-0.2.5\reader.hpp(75) : warning C4355: 'this' : used in base member
initializer list
1> c:\png++-0.2.5\reader.hpp(73) : while compiling class template member
function 'png::reader<istream>::reader(istream &)'
1> with
1> [
1> istream=std::ifstream
1> ]
1> c:\png++-0.2.5\consumer.hpp(160) : see reference to class template
instantiation 'png::reader<istream>' being compiled
1> with
1> [
1> istream=std::ifstream
1> ]
1> c:\png++-0.2.5\image.hpp(240) : see reference to function template
instantiation 'void
png::consumer<pixel,pixcon,info_holder,interlacing_supported>::read<istream,transformation>(istream
&,const transformation &)' being compiled
1> with
1> [
1> pixel=png::rgba_pixel,
1> pixcon=png::image<png::rgba_pixel>::pixel_consumer,
1> info_holder=png::image_info_ref_holder,
1> interlacing_supported=true,
1> istream=std::ifstream,
1> transformation=png::convert_color_space<png::rgba_pixel>
1> ]
1> c:\png++-0.2.5\image.hpp(200) : see reference to function template
instantiation 'void
png::image<pixel>::read_stream<std::ifstream,transformation>(istream &,const
transformation &)' being compiled
1> with
1> [
1> pixel=png::rgba_pixel,
1> transformation=png::convert_color_space<png::rgba_pixel>,
1> istream=std::ifstream
1> ]
1> c:\png++-0.2.5\image.hpp(118) : see reference to function template
instantiation 'void png::image<pixel>::read<transformation>(const char *,const
transformation &)' being compiled
1> with
1> [
1> pixel=png::rgba_pixel,
1> transformation=png::convert_color_space<png::rgba_pixel>
1> ]
1> c:\users\salman\documents\visual studio
2008\projects\rightware\rightware\rightware.cpp(37) : see reference to function
template instantiation
'png::image<pixel>::image<png::convert_color_space<png::rgba_pixel>>(const
std::string &,const transformation &)' being compiled
1> with
1> [
1> pixel=png::rgba_pixel,
1> transformation=png::convert_color_space<png::rgba_pixel>
1> ]
1>c:\png++-0.2.5\pixel_traits.hpp(93) : error C2589: '(' : illegal token on
right side of '::'
1> c:\png++-0.2.5\pixel_traits.hpp(92) : while compiling class template
member function 'unsigned char
png::basic_alpha_pixel_traits<component>::get_alpha_filler(void)'
1> with
1> [
1> component=unsigned char
1> ]
1> c:\png++-0.2.5\rgba_pixel.hpp(91) : see reference to class template
instantiation 'png::basic_alpha_pixel_traits<component>' being compiled
1> with
1> [
1> component=unsigned char
1> ]
1> c:\png++-0.2.5\convert_color_space.hpp(57) : see reference to class
template instantiation 'png::pixel_traits<pixel>' being compiled
1> with
1> [
1> pixel=png::rgba_pixel
1> ]
1> c:\png++-0.2.5\convert_color_space.hpp(283) : see reference to class
template instantiation 'png::detail::convert_color_space_impl<pixel>' being
compiled
1> with
1> [
1> pixel=png::rgba_pixel
1> ]
1>c:\png++-0.2.5\pixel_traits.hpp(93) : error C2059: syntax error : '::'
-----Original Message-----
From: Alex Shulgin [mailto:address@hidden
Sent: Monday, September 10, 2012 9:12 PM
To: address@hidden
Cc: address@hidden
Subject: Re: [pngpp-devel] Png++ on Windows/ Visual C++ 2008 Express edition
On Mon, Sep 10, 2012 at 2:55 AM, <address@hidden> wrote:
>
> I am totally new to lib png and png++ and have recently made my first
> project with these on linux. But have no idea how to use png++ on
> windows. I have my libpng configured on windows and am wondering how
> to move towards making png++ available and running my code which I
> built on linux on windows with visual studio 2008.
>
> I would be very grateful if someone can give some pointers. I have a
> deadline.
All you need to make png++ compile on Windows is configure your include
directories properly (to point to the png++ unpacked sources) or simply copy
the sources to your project and refer to them like this (for example):
#include <pngpp/png.hpp>
--
Alex
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2197 / Virus Database: 2437/5260 - Release Date: 09/10/12