Did you included these elements into your path?

C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\3.4.2;C: \MinGW\lib;C:\MinGW\include