
MBP
努力的老周
一个老码农,中年大叔。打过工,做过老板。
现有神兽一枚,努力培养神兽中。
展开
-
MBP中增加万能头 bits/stdc++.h
一直使用 G++ 的万能头,感觉还是比较爽了。Mac 由于使用 clang++ 来编译,不存在万能头。用久了感觉非常不爽。增加万能头其实万能头就是一个头文件,我们可以自己在 Mac 中增加对应的文件即可。include 目录clang 编译器对应的 include 目录为:/Library/Developer/CommandLineTools/usr/include。建立万能头我们只需要在对应的目录下,生成 stdc++.h 即可。cd /Library/Developer/CommandLi原创 2021-10-10 17:49:53 · 361 阅读 · 0 评论 -
Mac OS 产生 Coredump,定位 Segmentation Fault
前期工作开启 Mac Coredump% sudo sysctl kern.coredump=1kern.coredump: 1 -> 1设置 /cores 目录属性$ sudo mkdir /cores $ sudo chown root:admin /cores $ sudo chmod 1775 /cores$ sudo chmod o+w /cores设置 core 文件大小$ ulimit -c unlimited定位 Segmentation F原创 2020-09-08 00:31:56 · 5618 阅读 · 1 评论 -
brew update 错误解决。git: ‘credential-osxkeychain‘ is not a git command.
问题今天想升级一下 MBP 的系统,使用命令如下brew update git: 'credential-osxkeychain' is not a git command. See 'git --help'.git: 'credential-osxkeychain' is not a git command. See 'git --help'.fatal: could not read Username for 'https://github.com':原创 2020-09-07 17:15:47 · 3828 阅读 · 0 评论