bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: [ cplusplus-Bugs-657258 ] Implicit declaration of snprintf


From: Ari Johnson
Subject: Re: Fwd: [ cplusplus-Bugs-657258 ] Implicit declaration of snprintf
Date: Sat, 21 Dec 2002 14:24:17 -0600 (CST)

snprintf is a terribly unportable function.  I've found that at least
Solaris and Irix, each in relatively recent versions, do not include it.
One solution is to include a custom snprintf with the project, and compile
it in if configure can't find snprintf.  GtkYahoo should still come with
an snprintf.c that, I believe, is freely redistributable.  But make sure
it only gets compiled in if it is needed, since it tends to break
compatibility with systems that DO have snprintf.

Ari Johnson

On Sat, 21 Dec 2002, David Sugar wrote:

> process.cpp does include cstdio, which should define snprintf...does it not on
> Solaris?
>
> ----------  Forwarded Message  ----------
>
> Subject: [ cplusplus-Bugs-657258 ] Implicit declaration of snprintf
> Date: Sat, 21 Dec 2002 09:40:12 -0800
> From: address@hidden
> To: address@hidden
>
> Bugs item #657258, was opened at 2002-12-21 17:40
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=101523&aid=657258&group_id=
> 1523
>
> Category: Bug Reporter
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Rob O'Leary (raoleary)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Implicit declaration of snprintf
>
> Initial Comment:
> In process.cpp, stdio.h is only included on win32. and
> so, on Solaris 8 at least, there is no declaration of
> snprintf and the compiler exits with a status of 1,
> stopping the make process.
>
> Moving the #include <stdio.h> down a line fixes the
> problem.
>
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=101523&aid=657258&group_id=
> 1523
>
> -------------------------------------------------------
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]