Undefined reference to static queue

前端 未结 1 1018
走了就别回头了
走了就别回头了 2021-01-18 05:54

I\'m new with C++ pthreads. What I\'m trying to do is use one thread to catch UDP packets and put it into a queue, and another one to process them and send them after. My qu

相关标签:
1条回答
  • 2021-01-18 06:52

    you need to initialize the static member, add std::queue<int> A::bufferInbound; after the class or move it inside your function.

    0 讨论(0)
提交回复
热议问题