cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: vsnprintf

From: Frank Reid <fcreid_at_ourcorner.org>
Date: Mon, 8 Jan 2001 11:10:45 -0500

Daniel,

Here is the warning when I build the libraries:

ftp.c(1435) : warning C4013: 'vsnprintf' undefined; assuming extern
returning in cl.exe /MD /O2 /D "NDEBUG" /I "../include" /nologo /W3 /GX /D
"WIN32" /D "VC6"

And here's what I get building the source:

        link.exe /incremental:no /libpath:"../lib" /nologo /out:curl.exe
/subsystem:console /machine:I386 wsock32.lib libcurl.lib hugehelp.obj
writeout.obj urlglob.obj main.obj
libcurl.lib(ftp.obj) : error LNK2001: unresolved external symbol _vsnprintf
curl.exe : fatal error LNK1120: 1 unresolved externals

Also, I noticed hugehelp.c didn't come down with a full CVS this morning...
probably a transient issue.

Frank

-----Original Message-----
From: owner-curl_at_contactor.se [mailto:owner-curl_at_contactor.se]On Behalf
Of Daniel Stenberg
Sent: Sunday, January 07, 2001 15:43
To: Curl Mailinglist
Subject: Re: vsnprintf

On Sun, 7 Jan 2001, Frank Reid wrote:

> One other item. Just grabbed the current source from CVS, and the
> vsnprintf was not properly included in libcurl for a VC6 compile.
> Copying the curl_vsnprintf() function seemed to do the trick.

Copying?

The *printf functions curl use should be properly #define'd in
curl/mprintf.h
to use the curl_* version instead.

The current CVS'ed curl may doing this wrong since I've been doing some
major
symbol renamings lately.

Where is the bad vsnprintf being used?

--
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
Received on 2001-01-08