上一页 1 2 3 4 5 6 7 8 9 10 ··· 115 下一页
摘要: 查看总的文件打开数 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 阅读(154) 评论(0) 推荐(0)
摘要: so动态库的搜索路径搜索的先后顺序 编译目标代码时指定的动态库搜索路径 环境变量LD_LIBRARY_PATH指定的动态库搜索路径 配置文件/etc/ld.so.conf中指定的动态库搜索路径 默认的动态库搜索路径/lib 默认的动态库搜索路径/usr/lib gcc编译指定动态库搜索路径 -Wl, 阅读全文
posted @ 2024-11-14 14:27 jiftle 阅读(111) 评论(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 阅读(286) 评论(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 阅读(450) 评论(0) 推荐(0)
摘要: 添加代码 InitInstance() AllocConsole(); freopen("CONOUT$", "a+", stdout); 阅读全文
posted @ 2024-11-07 10:58 jiftle 阅读(55) 评论(0) 推荐(0)
摘要: 参考项目 https://github.com/google/cloud-print-connector 谷歌云打印机连接器 cups linux系统 winspool windows系统 https://github.com/lxn/win A Windows API wrapper packag 阅读全文
posted @ 2024-10-30 10:11 jiftle 阅读(298) 评论(0) 推荐(0)
摘要: 现象 错误 C4579 'nlohmann::json_abi_v3_11_2::detail::static_const<nlohmann::json_abi_v3_11_2::detail::from_json_fn>::value': in-class initialization for t 阅读全文
posted @ 2024-10-29 16:42 jiftle 阅读(349) 评论(0) 推荐(0)
摘要: sudo apt-get install cups-pdf 阅读全文
posted @ 2024-10-23 10:07 jiftle 阅读(120) 评论(0) 推荐(0)
摘要: docker离线版下载地址 https://download.docker.com/linux/static/stable/ 阅读全文
posted @ 2024-10-11 17:41 jiftle 阅读(237) 评论(0) 推荐(0)
摘要: windows下编译msys2 pacman -S mingw-w64-x86_64-libusb pacman -S mingw-w64-x86_64-pkg-config 注意 pacman -S mingw-w64-x86_64-pkg-config 不是 pacman -S pkg-conf 阅读全文
posted @ 2024-09-25 19:27 jiftle 阅读(62) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 115 下一页