You haven't set HD to point to anything.
What compiler are you using?