You're using the g++ make spec. Switch to the one for visual studio. You can do that by either setting the environment variable or by running "Qt 4.3.1 Command Prompt". With the latter all env vars are set automatically for the console session.