- Open iTerm:
cp iTermLauncher /usr/local/bin/iTermLauncher
- Open Sublime & install
Package Control
(if you haven't already), then installPackageResourceViewer
plugin. - Open the
Command Palette
(Under Tools tab), typeprv
to bring up the PackageResourceViewer options, selectOpen Resource
, then navigate down to C++ and select theC++ Single File.sublime-build
option. Replace all the contents with given.sublime-build
file, save it, and you should be all set. - Open C++ file, press
⌘ + Shift+ B
and select suitable option.
- Run
$ echo "" | gcc -xc - -v -E
to find header file search locations. - Go to run of the directories,
$ mkdir bits
- Copy https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/precompiled/stdc%2B%2B.h to
bits
.