摘要: 当使用CMake,target_link_libraries来链接静态库文件那边的头文件路径时,如果是跨了两层以上(即calculter到common这样),会导致CMake报错。add.h没有找到common.h头文件路径。 一般来说,编译时候会对头文件(.h)包含在源文件(.cpp)的头部,这时 阅读全文
posted @ 2024-04-24 01:21 江心岛两摩佬 阅读(119) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #include <dirent.h> #include <sys/types.h> #include <sys/stat.h> #include <stdlib.h> #include <fcntl.h> #includ 阅读全文
posted @ 2024-04-07 21:32 江心岛两摩佬 阅读(65) 评论(0) 推荐(0)