cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: "Separate DLL names for debug/release on Win32""

From: Russ Freeman <r_at_fatbird.com>
Date: Mon, 01 Nov 2004 20:19:00 +0000

Daniel Stenberg wrote:

> On Sat, 30 Oct 2004, Gisle Vanem wrote:
>
>> It's still needed. But why can't we remove the .def-file(s) all
>> together? And mark every exportable variable and function correctly.
>> I suggest we add something like this to curl.h:
>>
>> #if defined(WIN32) || defined(NETWARE)
>> #ifdef BUILDING_LIBCURL
>> #define CURL_EXTERN __declspec(dllexport)
>
>
> I agree.

Maybe so...but I thought def files are compiler/vendor indendent and are
easy to maintain - but the declspec directive is not.

The name in the .DEF file is not needed, certainly I don't use it coz
it's a PITA.

russ.
Received on 2004-11-01