03 2020 档案
摘要:在 linux 平台下使用 CMake 生成 Makefile 并编译的流程如下: 编写 CMake 配置文件 CMakeLists.txt 。 执行命令 cmake PATH 生成 Makefile 。 PATH 是 CMakeLists.txt 所在的目录。 使用 make 命令进行编译。 例子
阅读全文
摘要:#include <stdlib.h> #include <iostream> #include <time.h> #include <string> #include <stdio.h> using namespace std; int main(int argc, char* argv[]) {
阅读全文