1. 问题描述
用 IDA 打开libcurl.dll 可以在导入表看到对 GetTickCount64的引用,在 xp 的kernel32.dll中没有 GetTickCount64,
所以会出现 无法定位 GetTickCount64的问题
2. 解决方法
下载源码,自己编译libcurl.dll
编译环境:
Win7 64位系统 + vs2015
2.1 下载源码
https://curl.haxx.se/download/curl-7.50.3.tar.gz
2.2 打开 Visual Studio 2015 x64 x86 兼容工具命令提示符
注释掉以下文件中和 GetTickCount64有关的代码
{CURL_SRC}\lib\timeval.c
struct timeval curlx_tvnow(void)
{
/*
** GetTickCount() is available on _all_ Windows versions from W95 up
** to nowadays. Returns milliseconds elapsed since last system boot,
** increases monotonically and wraps once 49.7 days have elapsed.
*/
struct timeval now;
<span style="color:#ff0000;">//#if !defined(_WIN32_WINNT) || !defined(_WIN32_WINNT_