zengzhan / qqzeng-ip

最新IP地址数据库-多语言解析以及导入数据库脚本
https://www.qqzeng.com/
1.66k stars 571 forks source link

C++版本代码编译失败 #1

Open ipcpu opened 8 years ago

ipcpu commented 8 years ago

In file included from IPLocator.cpp:1: stdafx.h:8:23: error: targetver.h: No such file or directory stdafx.h:11:19: error: tchar.h: No such file or directory IPLocator.cpp: In destructor ‘IPSearch::~IPSearch()’: IPLocator.cpp:24: error: ‘free’ was not declared in this scope IPLocator.cpp: In member function ‘uint8t* IPSearch::readFile(std::string, long int)’: IPLocator.cpp:80: error: ‘malloc’ was not declared in this scope IPLocator.cpp:85: error: ‘free’ was not declared in this scope IPLocator.cpp: In member function ‘uint32t IPSearch::ipToLong(const char, uint32_t&)’: IPLocator.cpp:190: error: ‘strlen’ was not declared in this scope IPLocator.cpp:192: error: ‘memset’ was not declared in this scope IPLocator.cpp:202: error: ‘atoi’ was not declared in this scope IPLocator.cpp:207: error: ‘atoi’ was not declared in this scope IPLocator.cpp:212: error: ‘atoi’ was not declared in this scope IPLocator.cpp:224: error: ‘atoi’ was not declared in this scope IPLocator.cpp: In function ‘int main(int, char**)’: IPLocator.cpp:254: error: ‘ipArray’ was not declared in this scope IPLocator.cpp:254: error: ‘j’ was not declared in this scope

youfulife commented 8 years ago

+1