May 16th, 2016
C++ related stuff
Aug 5th, 2015
Lldb Breakpoint 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:
Feb 2nd, 2015
Debugging in the Terminal on OS X with LLDB
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:
Aug 31st, 2013
Installing clang_complete using Pathogen
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:
Aug 8th, 2012
GNU/Make moved in OS X 10.8 Mountain Lion -- Updated
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 :/
Jul 1st, 2012
X-out a String in C/C++ Using Vim
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:
Sep 20th, 2010
Intellisense with vim
Since ever, I was searching for a solution for nice C++-aware code navigation for vim. The solution described here is based on
Just install the omnicppcomplete plugin in vim and call ctags.
Jun 9th, 2010
Dump gcc Preprocessor Macro Definitions
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,
Oct 7th, 2009
XCode redefined std::vector<...>
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.
Jul 27th, 2009
Bit Twiddler for Programmers
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!