cURL / Mailing Lists / curl-users / Single Mail

curl-users

Make the cURL project as a DLL in Visual C++ 6.0

From: <chenfs_at_maxis.net.my>
Date: Tue, 20 Feb 2001 12:25:12 +0800

I'm having a compilation problems with creating the curl as a DLL instead of the execute file (curl.exe).

I try use the Visual C++ 6.0 wizard to create the MFC dll and i get the error as below :-

--------------------Configuration: curl_dll - Win32 Debug--------------------
Compiling...
main.cpp
c:\curl\curl_dll\src\setup.h(48) : warning C4273: 'fileno' : inconsistent dll linkage. dllexport assumed.
C:\cURL\curl_dll\src\main.cpp(590) : error C2065: 'Curl_strnequal' : undeclared identifier
C:\cURL\curl_dll\src\main.cpp(593) : error C2065: 'Curl_strequal' : undeclared identifier
C:\cURL\curl_dll\src\main.cpp(862) : error C2440: 'return' : cannot convert from 'int' to 'ParameterError'
        Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
C:\cURL\curl_dll\src\main.cpp(1917) : error C2440: '=' : cannot convert from 'void *' to 'char *'
        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
urlglob.cpp
C:\cURL\curl_dll\src\urlglob.cpp(82) : error C2440: '=' : cannot convert from 'void *' to 'char ** '
        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\cURL\curl_dll\src\urlglob.cpp(449) : warning C4018: '>=' : signed/unsigned mismatch
Generating Code...
Error executing cl.exe.

curl.dll - 5 error(s), 2 warning(s)

Regards,
Chen Fock Siong
20-Feb-2001
Received on 2001-02-20