delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/09/11/21:40:26

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 12 Sep 2005 01:22:06 +0000 (GMT)
From: "A. Wik" <djgpp-l AT aw DOT gs>
To: djgpp AT delorie DOT com
Subject: snprintf() and others
Message-ID: <20050912010645.F78492@dynamite.narpes.com>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

The libc.a reference documents this:

    #include <stdio.h>

    int snprintf (char *buffer, size_t n, const char *format,
                  ...);

But when I try to compile nasm 0.98.39 I get warnings about
incompatible implicit declarations when compiling, as well as
unresolved references when linking.

This applies to DJGPP 2.03.  I upgraded gcc to 4.0.1 to see
if there was a difference, but there wasn't.  According to
the GCC manual snprintf is built-in, but that doesn't seem
to help.  The same goes for vsnprintf().

-aw

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019