Geom
Geom

Reputation: 857

Using curl with VS2017, x64

No duplicate: I have read several articles about compiling Curl but I have still trouble and it seems to be a 32 vs. 64 bit problem. This is what I did:

This command creates builds/libcurl-vc15-x64-release-dll-ipv6-sspi-winssl/ with the bin, lib and include subdirs as expected and I can even run

C:\repoWOF\dev\3rdParty\curl-7.64.0\builds\libcurl-vc15-x64-release-dll-ipv6-sspi-winssl\bin>curl.exe
curl: try 'curl --help' or 'curl --manual' for more information

...which is an indication that libCurl works. However, when libCurl is linked with another software then this software crashes ("This application was unable to start correctly (0x00007b)"). I have used Dependency Walker with libcurl.dll and with the final software (netlicensing) that crashes. Here is the output for libcurl.dll:

enter image description here

And here is Dependency Walker for the netlicensing software:

enter image description here

..it shows two entries with x86 instead of x64 which is presumably the problem. I can only imagine that these two libs (SSLEAY32.DLL and LIBEAY32.DLL) come from Curl. Any hints?

Upvotes: 2

Views: 300

Answers (1)

Geom
Geom

Reputation: 857

Found a workaround: SSLEAY32.DLL and LIBEAY32.DLL where the problem. I downloaded x64 versions (for whatever reason they are also named xxx32.dll) and placed them into the dir of the executable.

Upvotes: 1

Related Questions