[cairo] Re: Linking to Cairo 1.0.2 statically (Win32)

Vladimir Vukicevic vladimirv at gmail.com
Fri Oct 14 08:40:21 PDT 2005

I still don't see what the problem is with just adding a
cairo_win32_surface_init() function.  Heck, it would be negligible
overhead to initialize if not initialized in
cairo_win32_surface_create().  Some people dislike writing init
functions, I personally dislike "magic" things happening behind my
back... static C++ constructors in C code definitely fits into that

    - Vlad

On 10/14/05, Christian Biesinger <cbiesinger at web.de> wrote:
> Tor Lillqvist wrote:
> > Not without resorting to compiler- and linker-specific magic with
> > __asm and whatnot to specify names of sections into which one puts
> > pointers to initializers, and stuff like that.
> Or maybe Cairo/Win32 could use a .cpp file having a global object w/ an
> appropriate constructor? Of course that'd be the only C++ code in cairo...
> -biesi

More information about the cairo mailing list