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

编译 代码示例--echo-server后出错 #67

Closed
jievince opened this issue Jun 15, 2019 · 1 comment
Closed

编译 代码示例--echo-server后出错 #67

jievince opened this issue Jun 15, 2019 · 1 comment

Comments

@jievince
Copy link

/tmp/ccrj5xT1.o: In function main::{lambda()#1}::operator()() const': me.cpp:(.text+0xbd): undefined reference to handy::EventBase::exit()'
/tmp/ccrj5xT1.o: In function main::{lambda(std::shared_ptr<handy::TcpConn> const&)#2}::operator()(std::shared_ptr<handy::TcpConn> const&) const': me.cpp:(.text+0xff): undefined reference to handy::TcpConn::send(handy::Buffer&)'
/tmp/ccrj5xT1.o: In function main': me.cpp:(.text+0x136): undefined reference to handy::EventBase::EventBase(int)'
me.cpp:(.text+0x166): undefined reference to handy::Signal::signal(int, std::function<void ()> const&)' me.cpp:(.text+0x1bd): undefined reference to handy::TcpServer::startServer(handy::EventBases*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned short, bool)'
me.cpp:(.text+0x1f2): undefined reference to handy::Logger::getLogger()' me.cpp:(.text+0x223): undefined reference to handy::Logger::getLogger()'
me.cpp:(.text+0x24f): undefined reference to handy::Logger::logv(int, char const*, int, char const*, char const*, ...)' me.cpp:(.text+0x2ab): undefined reference to handy::EventBase::loop()'
me.cpp:(.text+0x2c9): undefined reference to handy::EventBase::~EventBase()' me.cpp:(.text+0x33d): undefined reference to handy::EventBase::~EventBase()'
collect2: error: ld returned 1 exit status

@jovany-wang
Copy link
Collaborator

能给出你的环境和配置吗?

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