11 2024 档案

摘要:查看总的文件打开数 lsof 查看占用文件打开数最多的10个进制 lsof | awk '{print $2}' | sort | uniq -c | sort -nr | head -n 10 # lsof | awk '{print $2}' | sort | uniq -c | sort -n 阅读全文
posted @ 2024-11-14 14:50 jiftle 阅读(62) 评论(0) 推荐(0) 编辑
摘要:so动态库的搜索路径搜索的先后顺序 编译目标代码时指定的动态库搜索路径 环境变量LD_LIBRARY_PATH指定的动态库搜索路径 配置文件/etc/ld.so.conf中指定的动态库搜索路径 默认的动态库搜索路径/lib 默认的动态库搜索路径/usr/lib gcc编译指定动态库搜索路径 -Wl, 阅读全文
posted @ 2024-11-14 14:27 jiftle 阅读(32) 评论(0) 推荐(0) 编辑
摘要:交叉编译需要linux环境 windows 安装编译器 apt install gcc-mingw-w64 编译指令 windows: CGO_ENABLED=1 \ GOOS=windows \ GOARCH=amd64 \ CC=x86_64-w64-mingw32-gcc \ go build 阅读全文
posted @ 2024-11-12 18:37 jiftle 阅读(61) 评论(0) 推荐(0) 编辑
摘要:因为我们更喜欢在Linux上开发程序, 所以生成交叉编译器,以便在Linux上交叉编译出windows程序。 安装minGW:在Linux上运行gcc交叉编译生成windows程序 我们用到Cgo,因此需要安装 C 语言交叉编译器 sudo apt-get install gcc-mingw-w64 阅读全文
posted @ 2024-11-12 18:36 jiftle 阅读(139) 评论(0) 推荐(0) 编辑
摘要:添加代码 InitInstance() AllocConsole(); freopen("CONOUT$", "a+", stdout); 阅读全文
posted @ 2024-11-07 10:58 jiftle 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示