Subject: Re: `snprintf' undeclared (first use this function) on hp-ux 10.20
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Fri Oct 12 2001 - 08:39:19 CDT
Quoting rbrown64@csc.com.au:
> snprintf is declared in <stdio.h> in hpux11.00 .
> snprintf and vsnprintf are present in /lib/libc.a on hpux10.20, but
> don't
> seem to be declared
> in any header files in /usr/include. Conceivably providing appropriate
> declarations on
> 10.20 would allow snprintf to be used.
The notable problem is that stdio.h was being included in this file
(/usr/include is just a common place for include files to lie - this varies by
system). I'd guess that some preprocessor #define was blocking the definition
of snprintf, but I can't be sure since I don't run HPUX. This also means that
I really can't fix the problem, only work around it.
Sorry,
Dom
This archive was generated by hypermail 2b25 : Fri Oct 12 2001 - 08:39:28 CDT