[Cairo] Link Problems
Carl Worth
cworth at east.isi.edu
Tue Sep 23 08:05:43 PDT 2003
On Sep 13, Brian Victor wrote:
> >/home/bhv1/svgcode/cairo-demo/X11/cairo-demo.c:56: undefined reference
> >to `cairo_move_to'
> [snip]
> >gcc version 2.95.4 20011006 (Debian prerelease)
>
> It seems this isn't enough. Using 3.3 works fine. Which raises the
> question:
>
> slim_internal.h:79
> #if __GNUC__ >= 2 && defined(__ELF__)
>
> I don't understand what slim does, exactly, but hidden proto/def macros
> prevented successful linking on GCC 2.95.4. Should the above line be
> checking for version 3?
I don't know the intricacies of when gcc acquired the necessary
support, but I've bumped that test up to "#if __GNUC__ >= 3". With
that change, I've verified that Cairo programs can be built with
either gcc 2.95.4 or gcc 3.3.2 at least.
-Carl
More information about the cairo
mailing list