Well you probably did something wrong, so show us the exact code you used (yes we know what it should be, but maybe you mistyped it), all the relevant VS settings, what files are in the folder where you're running it, and anything else you can think of (I have no idea where it is).
And make sure you're not mixing static/dynamic or debug/release libraries; that's an insanely common error.