in reply to (OT) installing cairo library

Actually I am repeatedly getting these type of errors on almost every line of cairo-xlib-surface.c file.
Any help will be very welcome


Not sure that this can be categorised as "help", but note that the error occurs in cairo-xlib-surface-private.h, *not* cairo-xlib-surface.c.

Do you get any previous warnings that a .h file could not be found ?

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: (OT) installing cairo library
by krishi (Novice) on Dec 13, 2007 at 11:01 UTC
    Hi Rob,
    No, I didn't get any warnings that .h file not found.
    But I got this error:
    cairo-xlib-surface-private.h:91: error: syntax error before "XTransform"
    cairo-xlib-surface-private.h:91: warning: no semicolon at end of struct or union
    cairo-xlib-surface.c:83: error: syntax error before "identity"
    cairo-xlib-surface.c:83: warning: type defaults to `int' in declaration of `identity'
    cairo-xlib-surface.c:83: warning: braces around scalar initializer
    cairo-xlib-surface.c:83: warning: (near initialization for `identity')
    cairo-xlib-surface.c:84: warning: braces around scalar initializer
    And so on for almost every line in cairo-xlib-surface.c .
    Thanks, Krishi
      No, I didn't get any warnings that .h file not found.

      Well, that's odd. Line 91 simply contains:
      XTransform xtransform;
      which is certainly not a syntax error if a header file that defines the XTransform type was found. And Google doesn't return anything for "cairo-xlib-surface-private.h:91".

      I think Joost is right :-)

      Cheers,
      Rob