[cairo-bugs] [Bug 35131] Cannot build in MSVC++ 2010

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 15 07:20:32 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=35131

--- Comment #3 from Andrea Canciani <ranma42 at gmail.com> 2011-06-15 07:20:30 PDT ---
(In reply to comment #0)
> I tried to build cairo 1.10.2 under Microsoft Visual C++ 2010 (10.0) and the
> build fails in cairo.c with the below error. Considering the usage of that
> macro, and that's mostly unused, even in MSVC when compiled for 64bit, then I
> would like to suggest you to remove the macro completely. Thanks in advance.
> 
> Please note also those cairo-wideint-private.h warnings it's repeating on each
> file.
> 
> 1>------ Build started: Project: cairo, Configuration: Debug Win32 ------
> 1>  cairo.c
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo-wideint-private.h(177):
> warning C4146: unary minus operator applied to unsigned type, result still
> unsigned
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo-wideint-private.h(181):
> warning C4146: unary minus operator applied to unsigned type, result still
> unsigned
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo-wideint-private.h(194):
> warning C4244: 'return' : conversion from 'cairo_int64_t' to 'int32_t',
> possible loss of data
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2425: 'AND' :
> non-constant expression in 'first operand'
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2415:
> improper operand type
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2425: 'SHR' :
> non-constant expression in 'first operand'
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2415:
> improper operand type
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2425: 'SHR' :
> non-constant expression in 'first operand'
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2415:
> improper operand type
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2425: 'SHR' :
> non-constant expression in 'first operand'
> 1>d:\dila\litepdf\dependencies\cairo\src\src\cairo.c(172): error C2415:
> improper operand type
> ========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========

I recently pushed a changeset that should fix the Makefile.win32-based build.
Can you please check if you can reproduce the problem on cairo/master?
If the problem persists, can you provide some details about the build
environment
you are using?

(AFAICT cairo 1.10 should fail to build without even running the compiler if
you're
using the command "make -f Makefile.win32 CFG=debug")

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list