Calling any cURL function results in “entry point not found” when executing the program

孤者浪人 提交于 2020-01-04 06:04:28

问题


In Visual Studio 2012 (SP4) if I create a new Windows EXE solution, use the Nuget command line to "install-package curl", build the solution, the program executes correctly and displays the simple window as expected.

If I add a call to curl_version() to the code (meaning the cURL, SSL, etc... DLLs are now referenced) - I get an error from Windows saying...

MyProgram.EXE - Entry Point Not Found
The procedure entry point CreateFile2 could not be located in the 
dynamic link library KERNEL32.DLL.

I've used Dependency Walker to verify that the DLLs (LIBCURL, LIBSSH2, SSLEAY32 and ZLIB.DLL) are the same ones Nuget installed - and they are.

Help please...


回答1:


Found the problem using this solution - basically zLIB v1.2.8.1 references the Windows 8 function CreateFile2



来源:https://stackoverflow.com/questions/23225374/calling-any-curl-function-results-in-entry-point-not-found-when-executing-the

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!