cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: sys_nerr on MSVC

From: Greg Hewgill <greg_hewgill_at_ud.com>
Date: Thu, 25 Mar 2004 10:19:56 -0600

>Then compile with "cl -E ..." and see what sys_nerr really is (if it's defined
>in your stdlib.h at all). Smells like incompatible SDKs again.

It is, it's declared in stdlib.h as

_CRTIMP extern int _sys_nerr;
#define sys_nerr _sys_nerr

The _CRTIMP macro probably expands to some dll linkage or something which is incompatible with a plain "extern int" declaration as was in strerror.c. But Daniel has already fixed the problem anyway by not trying to declare sys_nerr on WIN32 builds.

Greg Hewgill
http://hewgill.com
Received on 2004-03-25