Hi. During compilation of Qt 4.6 (2009.05) on Windows using Qt command prompt available within SDK I receive a lot of errors:

Qt Code:
  1. release/main.o:main.cpp:(.text+0x3d65): undefined reference to `QHashData::free_
  2. helper(void (*)(QHashData::Node*))'
  3. release/main.o:main.cpp:(.text+0x3d8c): undefined reference to `qFree(void*)'
  4. release/main.o:main.cpp:(.text+0x3ddb): undefined reference to `qt_assert_x(char
  5. const*, char const*, char const*, int)'
  6. release/main.o:main.cpp:(.text+0x3e18): undefined reference to `QByteArray::oper
  7. ator=(QByteArray const&)'
  8. release/main.o:main.cpp:(.text+0x3e3f): undefined reference to `QHashData::free_
  9. helper(void (*)(QHashData::Node*))'
  10. release/main.o:main.cpp:(.text+0x3e64): undefined reference to `qFree(void*)'
  11. release/main.o:main.cpp:(.text+0x3ee8): undefined reference to `qt_assert_x(char
  12. const*, char const*, char const*, int)'
  13. release/main.o:main.cpp:(.text+0x3f2b): undefined reference to `QByteArray::oper
  14. ator=(QByteArray const&)'
  15. release/main.o:main.cpp:(.text+0x3f5e): undefined reference to `QByteArray::mid(
  16. int, int) const'
  17. release/main.o:main.cpp:(.text+0x3f6b): undefined reference to `QByteArray::oper
  18. ator=(QByteArray const&)'
  19. release/main.o:main.cpp:(.text+0x3f84): undefined reference to `qFree(void*)'
  20. release/main.o:main.cpp:(.text+0x3f94): undefined reference to `qFree(void*)'
  21. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN9QListData4DataE[QList
  22. <QString>::free(QListData::Data*)]+0x34): undefined reference to `QString::free(
  23. QString::Data*)'
  24. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN9QListData4DataE[QList
  25. <QString>::free(QListData::Data*)]+0x57): undefined reference to `qFree(void*)'
  26. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendERKS0_[QList<QString>::
  27. append(QString const&)]+0x24): undefined reference to `QListData::detach3()'
  28. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendERKS0_[QList<QString>::
  29. append(QString const&)]+0x81): undefined reference to `qt_assert(char const*, ch
  30. ar const*, int)'
  31. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendERKS0_[QList<QString>::
  32. append(QString const&)]+0xc6): undefined reference to `QListData::append()'
  33. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendERKS0_[QList<QString>::
  34. append(QString const&)]+0xf3): undefined reference to `QString::free(QString::Da
  35. ta*)'
  36. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendERKS0_[QList<QString>::
  37. append(QString const&)]+0x117): undefined reference to `qt_assert(char const*, c
  38. har const*, int)'
  39. release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendERKS0_[QList<QString>::
  40. append(QString const&)]+0x138): undefined reference to `qt_assert(char const*, c
  41. har const*, int)'
  42. release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9
  43. QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x42):
  44. undefined reference to `qFree(void*)'
  45. release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11IncludePathEE4freeEPN9
  46. QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x6f):
  47. undefined reference to `qFree(void*)'
  48. release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
  49. yteArray>::~QMap()]+0x34): undefined reference to `QMapData::continueFreeData(in
  50. t)'
  51. release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
  52. yteArray>::~QMap()]+0x5a): undefined reference to `qFree(void*)'
  53. release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1Ev[QMap<QByteArray, QB
  54. yteArray>::~QMap()]+0x70): undefined reference to `qFree(void*)'
  55. release/main.o:main.cpp:(.text$_ZN5QListI8ClassDefED1Ev[QList<ClassDef>::~QList(
  56. )]+0x6d): undefined reference to `qFree(void*)'
  57. collect2: ld returned 1 exit status
  58. mingw32-make[2]: *** [..\..\..\bin\moc.exe] Error 1
  59. mingw32-make[2]: Leaving directory `C:/Lib/Qt/2009.05/qt/src/tools/moc'
  60. mingw32-make[1]: *** [release] Error 2
  61. mingw32-make[1]: Leaving directory `C:/Lib/Qt/2009.05/qt/src/tools/moc'
  62. mingw32-make: *** [sub-moc-make_default-ordered] Error 2
To copy to clipboard, switch view to plain text mode 

I'm compiling with

Qt Code:
  1. C:\Lib\Qt\2009.05\qt>configure -prefix c:\lib\qt\2009.05.m -opensource -no-webki
  2. t -no-phonon -plugin-sql-tds -no-script -no-scripttools -release
To copy to clipboard, switch view to plain text mode 

mkspecs folder is copied to c:\lib\qt\2009.05.m

Is there a way to fix this and compile successfully? I need the SQL TDS plugin.