Re: Compilation errors with MSVC after recent changes to 'cairo-path-stroke-traps.c'

John Emmas <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 04/10/2014 18:26, John Emmas wrote:
>
>     cairo-path-stroke-traps.c(302) : error C2440: 'initializing' : 
> cannot convert from 'cairo_point_t' to 'cairo_fixed_t'
>
> The stated line (302) seems to be newly added and looks like this:-
>
>     cairo_point_t t[] = { in->point, *inpt, *outpt };
>
> Similar errors are occurring at lines 303, 464 and 465.  MSVC seems to 
> be objecting to the array elements for some reason.
>

I've discovered a bit more information which should be helpful....

The problem seems to be due to the compiler not providing a default copy 
c'tor for 'cairo_point_t'  Or (to put it another way) the offending 
lines work fine if I compile as C++ but not if I compile as regular 'C'.

Sadly however, compiling as C++ just throws up a whole host of other 
problems elsewhere  :-(

Hope that helps,

John
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.