[cairo] Cairo ported to OS/2 - Suggestions

Tor Lillqvist tml at iki.fi
Wed Aug 17 03:13:30 PDT 2005

Doodle writes:
 > it either requires the __declspec(dllexport) stuff or one has to
 > tell the linker explicitly which names to export.

The same goes for the Microsoft tools on Win32, too, so there are
already .def files out there used by those who build cairo with
MSVC. It's only gcc (on Win32, dunno about OS/2) that exports all
global symbols automatically. Using a .def file is certainly much
cleaner than "decorating" the function declarations in the
headers. The cairo API is more or less stable at this point, so
maintaining the .def file shouldn't be that hard.

(There is a .def file included in the Win32 cairo-dev package at
ftp://ftp.gtk.org/pub/gtk/v2.8/win32/ . Presumably it is trivial to
make an OS/2 .def file from it?)


More information about the cairo mailing list