
Linux
AllenGates
好好编程
展开
-
make: Warning:错误的一种解决方法
将代码上传到一个Linux系统上进行编译时报错:make: Warning: File 'a.out' has modification time 2007 s in the futureg++ -c sampen_test.cpp -o test.og++ -c sampen.cpp -o sampen.omake: warning: Clock skew detected. Your build may be incomplete.这是因为代码是在笔记本上写的,而Linux系统没有联网。原创 2022-02-26 01:29:06 · 900 阅读 · 0 评论 -
如何在WSL2中使用perf分析代码性能
WSL2直接使用perf会报没有安装的错误:WARNING: perf not found for kernel 4.4.0-18362You may need to install the following packages for this specific kernel:linux-tools-4.4.0-18362-Microsoftlinux-cloud-tools-4.4.0-18362-MicrosoftYou may also want to install one of原创 2022-02-23 05:56:56 · 3540 阅读 · 5 评论 -
Linux下用find查找并复制指定文件到指定目录下
Linux下用find查找并复制指定文件到指定目录下find . -iname "*.doc" -type f -exec cp {} /tmp/doc \;实例,即使目录有空格也可以参考链接错误,评论问更正Linux下用find查找并复制指定文件到指定目录下原创 2022-02-17 00:00:27 · 5349 阅读 · 0 评论