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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 8 22:42:04 PST 2011


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

           Summary: Cannot build in MSVC++ 2010
           Product: cairo
           Version: 1.10.2
          Platform: x86 (IA32)
        OS/Version: Windows (All)
            Status: NEW
          Severity: critical
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: mcrha at redhat.com
         QAContact: cairo-bugs at cairographics.org


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 ==========

-- 
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