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

编译bug #3

Open
cuijinquan opened this issue Nov 19, 2019 · 1 comment
Open

编译bug #3

cuijinquan opened this issue Nov 19, 2019 · 1 comment

Comments

@cuijinquan
Copy link

bug:
/net/libtnet/src/acceptor.cpp: In destructor ‘tnet::Acceptor::~Acceptor()’:
/net/libtnet/src/acceptor.cpp:38:27: error: ‘close’ was not declared in this scope
close(m_sockFd);
^
/net/libtnet/src/acceptor.cpp:40:24: error: ‘close’ was not declared in this scope
close(m_dummyFd);
^
/net/libtnet/src/acceptor.cpp: In member function ‘void tnet::Acceptor::onAccept(tnet::IOLoop*, int)’:
/net/libtnet/src/acceptor.cpp:98:32: error: ‘close’ was not declared in this scope
close(m_dummyFd);
^
make[2]: *** [src/CMakeFiles/tnet.dir/acceptor.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/tnet.dir/all] Error 2
make: *** [all] Error 2

@HamsterCoderSim
Copy link

请问解决这个问题了吗,这个问题是由什么引起的呢? @cuijinquan

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