Hi Ray, thanks for getting back to me.

Please excuse my ignorance/inexperience but i'm very new to C++ (and OOP, 
compiling/linking in general).  I'll try and explain as best i can what I have 
done so far and hopefully you will be able to advise how to proceed.

I am developing an application that uses the cURL library to post JSON format 
data. The requirement at my installation is to use the Watcom compiler which 
intially caused a few headaches, but I have managed to overcome them with some 
help from Luca on this mailing list.

I downloaded cURL 7.64.0 and have been using the curl header in my application 
to carry out the post operations. In order to get around the problem of the 
Watcom calling conventions being different to CDECL, under the guidence of Luca 
I generated an import Lib for Watcom from the libcurl.dll and have been using 
that when compiling and linking to generate my executable.

My application works fine under Windows 7 and 10, however, I get the bcrypt.dll 
missing error message when attempting to run it on Windows XP.

If you require any further information, please let me know and I will do my 
best to assist you.

Kind regards,
Dan.
________________________________
From: curl-library <curl-library-boun...@cool.haxx.se> on behalf of Ray Satiro 
via curl-library <curl-library@cool.haxx.se>
Sent: 02 July 2019 08:24
To: curl-library@cool.haxx.se
Cc: Ray Satiro
Subject: Re: Missing bcrytp.dll when running Watcom compiled Libcurl program on 
XP.

On 6/28/2019 7:42 AM, Dan Gribble via curl-library wrote:
I am experiencing a problem when a program using Libcurl that is compiled on 
Windows 7 using the Watcom C++ compiler is run on Windows XP.

I am aware that XP is no longer supported, however, at my installation we still 
have a couple of legacy machines that we require to still run XP.

I have openSSL 1.1.1c installed on Win 7 machine, and have copied the 
libcurl.dll, lincrypto-1_1.dll and libssl-1_1.dll files to one of legacy XP 
machines, however, when trying to execute the program, it says that 
"brcypt.dll" is missing.

I undertand that bcypt.dll was introduced in in Windows operating systems later 
than XP, so it works fine on our Windows, 7 and 10 machines.

I would be extremely grateful if anyone could suggest a method that would 
enable my program to run on Windows XP.


How exactly did you build curl? I see in Makefile.Watcom WINVER is set to Vista 
when IPv6 is enabled at build time [1]. We may have similar logic elsewhere. In 
other words some features may require targeting later versions of Windows for 
some compilers. The official build of curl for windows [2] works on XP and 
comes with IPv6 enabled. To use that libcurl.dll you would also need the 
OpenSSL DLLs and there is a link to them on the same page.


[1]: https://github.com/curl/curl/blob/curl-7_65_1/lib/Makefile.Watcom#L108
[2]: https://curl.haxx.se/windows/

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to