Skip to content
Archive of entries posted on

error: ‘malloc’ was not declared in this scope

Translation: You are a bad person and did not include stdlib.h. Older versions of gcc let you get away with this. Not so with 4.3. I had similar errors for strcmp when not including string.h. I got this trying to compile my thesis code on my laptop. The exact same code worked on my desktop, […]

Converting subversion repositories to git

See How to convert from subversion to git by Paul Dowman. When you use git-svn to clone a subversion repository to git, it converts svn tags to git remote branches. This behavior makes sense if you will continue to use the svn repository. However for permanent conversion I prefer converting them to git tags. The […]

Source code management for personal projects

After hearing all the buzz about distributed version control systems (DVCS), I was curious if they offered advantages over subversion for personal code management. The answer is a resounding yes, and I see no reason to ever go back. I considered three candidates: git, mercurial (hg), and bazaar-ng (bzr).

ctags with bjam and eliminating user-config.jam

I added a rule to rebuild my tags file whenever the sources change. It took me way too long to figure this out – I was very surprised that a google search for ‘bjam ctags’ turned up nothing. make tags : [ glob *.cc ] [ glob *.h ] [ glob lib/*.cc ] [ glob […]