senlinzhan/socks5

make遇错

luckypoem opened this issue · 0 comments

hi。
在 linux vps上。当我make时,遇错:
...
-- Installing: /root/socks5-by-senlinzhan/thirdparty/googletest/lib64/pkgconfig/gtest_main.pc
[ 58%] Completed 'gtest_external_project'
[ 58%] Built target gtest_external_project
Scanning dependencies of target basic
[ 60%] Building CXX object basic/CMakeFiles/basic.dir/base.cpp.o
/root/socks5-by-senlinzhan/basic/base.cpp: In constructor ‘ServerBase::ServerBase(const Address&, AcceptCallback, AcceptErrorCallback, void*)’:
/root/socks5-by-senlinzhan/basic/base.cpp:26:34: error: ‘EVDNS_BASE_INITIALIZE_NAMESERVERS’ was not declared in this scope
dns_ = evdns_base_new(base_, EVDNS_BASE_INITIALIZE_NAMESERVERS);
^
make[2]: *** [basic/CMakeFiles/basic.dir/base.cpp.o] Error 1
make[1]: *** [basic/CMakeFiles/basic.dir/all] Error 2
make: *** [all] Error 2

怎么解决?