You don't have to take it in as black or white. It does not mean "give away everything you have and be miserable".
The way I read it was: don't hoard, make others happy.
It does not mean I should live a miserable life in hope that someone, whom I'm giving to, will recognize it.
The wisdom can escape you if you take what's written literally letter for letter, as if you're a computer.