我在linux-mint $ make上运行c++程序时遇到了htis错误。
g++ -c -O3 common.cc
common.cc: In function ‘float getCurrentMemoryUsage()’:
common.cc:11:40: error: ‘getpid’ was not declared in this scope
string pid = intToStr(unsigned(getpid()));解决这个问题的步骤是什么,谢谢。
发布于 2016-01-16 04:03:53
来自 man page
概要#包括
https://stackoverflow.com/questions/34823393
复制相似问题