05 2022 档案

摘要:MinGW 工具链 获取 MinGW CLion 自带 MinGW,但只能编译64位程序,如果需要编译32位程序,可以去自己下载 MSYS2。在另一篇博客中可以找到下载安装教程。 下面的教程假设你自己在 D:/MSYS2 安装了 MSYS2 (用自带的也是同理) 添加 toolchain 按照下图设 阅读全文
posted @ 2022-05-13 17:38 BinarySong 阅读(1746) 评论(0) 推荐(0)
摘要:去https://www.msys2.org/下载安装新版MSYS2 在开始菜单会多出几个程序,我们用下面2个就行了: 在x64版(蓝色)运行: pacman -Syu pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w6 阅读全文
posted @ 2022-05-13 15:38 BinarySong 阅读(1178) 评论(0) 推荐(0)
摘要:int main() { QPushButton quit("Quit"); QWidget window; quit.setParent(&window); //double free! ... } 解决方案:子对象都用new,不要用栈对象 阅读全文
posted @ 2022-05-08 20:40 BinarySong 阅读(122) 评论(0) 推荐(0)
摘要:如何ssh连接VMWare虚拟机(0废话) VMWare 虚拟网卡配置 在 VMWare Workstation 中: 右键虚拟机 → 设置 → 网络适配器 → 选择 NAT 模式 安装 openssh 在 虚拟机 中执行: sudo apt install openssh-client opens 阅读全文
posted @ 2022-05-07 22:47 BinarySong 阅读(6717) 评论(1) 推荐(2)