1. Which SDL2 headers are you using?
2. Sure you got all the development libs? (And for the right arch?)