vsnprintf

Till Straumann strauman at slac.stanford.edu
Thu Jan 13 17:56:47 UTC 2005


On Thu, 2005-01-13 at 09:01, Ralf Corsepius wrote:
> On Thu, 2005-01-13 at 09:37 -0700, Steve Holle wrote:
> > I'm trying to get the OpenH323 library to compile and it's looking for 
> > vsnprintf.  I found it in stdio.h but it is bracketed by #ifndef 
> > __STRICT_ANSI__.  Can I turn this off and if so, how?
> By not using -ansi in your CFLAGS.
> 
> vsprintf is not part of C89 ("ANSI C") so newlib disables it if using -
> ansi.

unfortunate linewrap: Ralf meant the '-ansi' gcc option. If 
you use this option, gcc will define __STRICT_ANSI__ and
vsnprintf will not be visible in the header. The good news
is that it's still in newlib and you should be able to link
regardless of the '-ansi' option.

HTH
Till.
> 
> Ralf
> 
> 




More information about the users mailing list