I think pg had a good essay on this topic:
http://www.paulgraham.com/organic.html
basically, it says that it's better to try to create something that you want, because when you're young you will have a very difficult time understanding what someone else wants. Also, you are more likely to be motivated if you are creating something for yourself. Creating something for someone else is too much like work (without the salary)