I'm using Qt 4.5 on a Windows XP system. I need to connect to a PostgreSQL database. I've done the configure -plugin-sql-psql command and did a mingw32-make afterwards and got the following errors:

collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\..\bin\moc.exe] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/2009.04/qt/src/tools/moc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/2009.04/qt/src/tools/moc'
mingw32-make: *** [sub-moc-make_default-ordered] Error 2

I've also followed the instructions found at http://wiki.qtcentre.org/index.php?t...ws_using_MinGW and got the following errors.

'C:/Qt/2009.04/qt/bin/moc.exe' is not recognized as an internal or external comm
and,
operable program or batch file.
mingw32-make[1]: *** [tmp/moc/debug_shared/moc_qsql_psql.cpp] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/2009.04/qt/src/plugins/sqldrivers/psql
'
mingw32-make: *** [debug-all] Error 2

What is going on here???