因为某种原因服务器崩溃了过了一段时间,我们在- Oct 18 04:42:46启动服务器(打开电源)
Oct 16 18:17:22 linux avahi-daemon[1140]: Invalid response packet from host 45.52.7.60.Oct 16 18:17:22 linux avahi-daemon[1140]: Invalid response packet from host 45.
它使用了两个“非标准”函数(如果我没记错的话,这两个函数都在cstdlib中):sleep()和daemon()。在更新我的系统时,我发现我的程序不能再编译了(它仍然可以在我的旧系统上编译)。GCC给了我这样的信息:error: 'sleep' was not declared in this scope我还假设daemon()也发生了同样的事情。我在谷歌上找不到任何与此相关的东西。
有没