On Tue, Oct 26, 2010 at 5:57 AM, Michal Hocko <[email protected]> wrote: > What surprises me here is that [mkstemp is declared] only if > __STRICT_ANSI__ is not defined. > This macro is defined if -ansi parameter is used for gcc/g++. > The macro "__STRICT_ANSI__" is predefined when the -ansi option is > used. Some header files may notice this macro and refrain from > declaring certain functions or defining certain macros that the ISO > standard doesn't call for; this is to avoid interfering with any > programs that might use these names for other things.
Yes, this sounds like a reasonable bet, and makes perfect sense. I see similar discussions, having nothing to do with pdfedit, as far as I know, such as this one: http://www.webservertalk.com/archive107-2004-1-70561.html However, you know that when I put in an extern declaration--right in gfile.cc--for mkstemp (and a number of other functions in other files that were failing to be declared, as mkstemp was) the COMPILE went through (with warnings) but then the linkage, at the end, was unable to find the files. I don't know if simply removing the -ansi switch from CONFIG_CFLAGS and CONFIG_CXXFLAGS will be sufficient to pull these functions in from the libraries in which they reside...but when I get to my office, I'll set a build going, with this change, and let you know what happened. If it involves sending you files, I'll do so privately again, with notice to the list. Thank you again for helping me debug this: it has been SO long since I've written in C (I used to write almost exclusively in C) that I have enormous trouble trying to debug a C program myself, or making any but the simplest sorts of adjustments. It's amazing how much one can forget--and I used to be the local "C Guru" wherever I was! ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Pdfedit-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pdfedit-support
