Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ipcpu opened this issue Jan 9, 2016 · 1 comment
Open

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

ipcpu opened this issue Jan 9, 2016 · 1 comment

Comments

@ipcpu
Copy link

ipcpu commented Jan 9, 2016

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 ‘uint8_t* 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 ‘uint32_t 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
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants