C++ related stuff
Just like in my previous post I need to jot down some useful commands for Lldb because I need to look them up so often. It contains standard breakpoint handling and running - just the very simple basics I should never forget. Note that this document will grow over time, hopefully.
First of all, do not forget to prepend xcrun to lldb, that makes it much more useable:
Since I happen to forget this every once in a while and end up in trying to debug in the command line but no symbols and no source is found, I drop a message for my future me:
Today I installed clang_complete using Pathogen (i. e., I installed it as a submodule of my dotﬁles git repository aka nesono-bin.
I tried to be smart and went into the submodule’s directory and invoked
That nicely built the vimball and installed itself - but whenever I tried to open a
cpp-ﬁle I got the following error:
What a bad surprise, trying to build the Makeﬁle-based project and got the response:
make not found!
Lucky for us, it has just moved into the XCode package - the logical place according to Apple’s rules, though not automatically in the
PATH environment variable :/
Some time ago, I wanted to x-out all constant C-strings (characters within
") in a C-ﬁle and wondered how to do that with Vim.
E. g. when you want to cross out every character of a
Hello World String like this:
Today I wanted to get all macro deﬁnitions from gcc - including those deﬁned internally. I knew it some tim ago, but forgot the command again, so I paste it in here for all of you.
gcc -dM -E - < /dev/null | sort
That’s it and cheers,
Yesterday I stumbled over a problem using XCode 3. I was caused by a library, which was based on plain Makeﬁles. I tried to use this library in my XCode project, but anyhow, I always got the same error while linking.
Yesterday I found a site called The Bit Twiddler while searching for an algorithm to calculate the bit population of an
C. To me, it was quite like breaking a butterﬂy on the wheel, but it was very interesting and good to know for everybody who needs to twiddle with bits… But check it out yourself!