[cups.bugs] [MOD] STR #3781: Can't build Windows CUPS 1.4.5 with Visual Studio 2005

Ken Sharp ken.sharp at artifex.com
Mon Jan 31 04:36:34 PST 2011


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

A few additional changes were required to finally build the limited library
required to get the GS cups device to work without the presence of the full
CUPS installation.

The prototype of strchr in ppd.c turned out also to be required for Linux
builds (something to do with search path order and the include file being
named string.h)

localize.c required a prototype for strcmp, apparently for the same reason
that ppd.c needed a prototype for strchr. This was required for gcc on
Linux, MSVC on Windows (for some reason) was happy without it.

Finally, language.c has extensive code conditionally included via the
__APPLE__ variable. This uses a number of structures and functions which I
think are part of the Carbon Framework, however the file does not include
any .h header files with these definitions. As a result building on a Mac
failed. It was necessary to #undef __APPLE__ in the file to get it to
compile. Possibly a Mac programmer could easily fix this, but the only
access I have to a Mac is via ssh to a machine in Colorado, and it was
beyond me to make a better fix.

Link: http://www.cups.org/str.php?L3781
Version: 1.4.5





More information about the cups mailing list