yyzybb537 / libgonet Goto Github PK
View Code? Open in Web Editor NEWC++ network library based on `libgo`.
License: GNU Lesser General Public License v3.0
C++ network library based on `libgo`.
License: GNU Lesser General Public License v3.0
这个是不是只针对linux啊,我在windows尝试编译,除了很多问题,有很多是因为用了linux中的函数,代码没有判断
libgo 是 3.1-stable .
libgonet server 的 setReceiveCb 中调用含 coroutine 的函数. 没有被调度起来.
在 main 中可以.
libgonet 里面的libgo版本有点老? 这个项目还维护吗.
‘reset_writable’ is not a member of ‘co’
编译报这个错误,请问怎么修改
[100%] Linking CXX executable ../../bin/socks-serv
/root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function co::CoTimer::CoTimer<long, std::ratio<1l, 1000l> >(std::chrono::duration<long, std::ratio<1l, 1000l> >, co::Scheduler*)': /root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:53: undefined reference to
co::CoTimer::CoTimerImpl::CoTimerImpl(std::chrono::duration<long, std::ratio<1l, 1000000000l> >)'
/root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:55: undefined reference to co::CoTimer::Initialize(co::Scheduler*)' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function
network::tcp_detail::GetTimer()':
/root/work/socks-libgo/third_party/libgonet/libgonet/tcp_detail.cpp:22: undefined reference to co::CoTimer::~CoTimer()' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function
co::Timer<std::function<void ()> >::TimerId co::CoTimer::ExpireAt<long, std::ratio<1l, 1000l> >(std::chrono::duration<long, std::ratio<1l, 1000l> >, std::function<void ()> const&)':
/root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:70: undefined reference to co::CoTimer::ExpireAt(std::chrono::duration<long, std::ratio<1l, 1000000000l> >, std::function<void ()> const&)' /root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:70: undefined reference to
co::CoTimer::ExpireAt(std::chrono::duration<long, std::ratio<1l, 1000000000l> >, std::function<void ()> const&)'
/root/work/socks-libgo/third_party/libgonet/third_party/libgo/libgo/timer/timer.h:70: undefined reference to co::CoTimer::ExpireAt(std::chrono::duration<long, std::ratio<1l, 1000000000l> >, std::function<void ()> const&)' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function
std::_Sp_counted_ptr<co::CoTimer::CoTimerImpl*, (__gnu_cxx::_Lock_policy)2>::_M_dispose()':
/usr/local/gcc/include/c++/11.0.0/bits/shared_ptr_base.h:348: undefined reference to co::CoTimer::CoTimerImpl::~CoTimerImpl()' /root/work/socks-libgo/build/liblibgonet.a(tcp_detail.cpp.o): In function
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_countco::CoTimer::CoTimerImpl*(co::CoTimer::CoTimerImpl*)':
/usr/local/gcc/include/c++/11.0.0/bits/shared_ptr_base.h:600: undefined reference to `co::CoTimer::CoTimerImpl::~CoTimerImpl()'
collect2: error: ld returned 1 exit status
make[2]: *** [../bin/socks-serv] Error 1
make[1]: *** [socks-serv/CMakeFiles/socks-serv.dir/all] Error 2
make: *** [all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.