: ‘Buffer’ is not a member of ‘muduo::net’? #562
sychen12345
started this conversation in
General
Replies: 1 comment
-
Did you #include "muduo/net/Buffer.h" ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
陈硕大佬,请问一下,
using namespace muduo;
using namespace muduo::net;
muduo::net::Buffer *buf;
// Buffer *buf;
muduo::StringPiece s("buf\n");
我这样使用muduo的buffer好像你书上也是这样写的,为什么会报错呢
error: ‘Buffer’ is not a member of ‘muduo::net’
muduo::net::Buffer *buf;
Beta Was this translation helpful? Give feedback.
All reactions