vsnprintf

Steve Holle sholle at link-comm.com
Thu Jan 13 20:00:00 UTC 2005


That did the trick.  I just put a prototype in the file with the problem 
and was able to compile without problems.

Thanks.
At 10:56 AM 1/13/2005, Till Straumann wrote:
>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
> >
> >

Steve Holle
Link Communications, Inc.
1035 Cerise Rd.
Billings, MT  59101
sholle at link-comm.com  




More information about the users mailing list