PDA

View Full Version : Problem compiling Qt 4.6



dentharg
8th December 2009, 07:32
Hi. During compilation of Qt 4.6 (2009.05) on Windows using Qt command prompt available within SDK I receive a lot of errors:


release/main.o:main.cpp:(.text+0x3d65): undefined reference to `QHashData::free_
helper(void (*)(QHashData::Node*))'
release/main.o:main.cpp:(.text+0x3d8c): undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text+0x3ddb): undefined reference to `qt_assert_x(char
const*, char const*, char const*, int)'
release/main.o:main.cpp:(.text+0x3e18): undefined reference to `QByteArray::oper
ator=(QByteArray const&)'
release/main.o:main.cpp:(.text+0x3e3f): undefined reference to `QHashData::free_
helper(void (*)(QHashData::Node*))'
release/main.o:main.cpp:(.text+0x3e64): undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text+0x3ee8): undefined reference to `qt_assert_x(char
const*, char const*, char const*, int)'
release/main.o:main.cpp:(.text+0x3f2b): undefined reference to `QByteArray::oper
ator=(QByteArray const&)'
release/main.o:main.cpp:(.text+0x3f5e): undefined reference to `QByteArray::mid(
int, int) const'
release/main.o:main.cpp:(.text+0x3f6b): undefined reference to `QByteArray::oper
ator=(QByteArray const&)'
release/main.o:main.cpp:(.text+0x3f84): undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text+0x3f94): undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN 9QListData4DataE[QList
<QString>::free(QListData::Data*)]+0x34): undefined reference to `QString::free(
QString::Data*)'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE4freeEPN 9QListData4DataE[QList
<QString>::free(QListData::Data*)]+0x57): undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendE RKS0_[QList<QString>::
append(QString const&)]+0x24): undefined reference to `QListData::detach3()'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendE RKS0_[QList<QString>::
append(QString const&)]+0x81): undefined reference to `qt_assert(char const*, ch
ar const*, int)'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendE RKS0_[QList<QString>::
append(QString const&)]+0xc6): undefined reference to `QListData::append()'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendE RKS0_[QList<QString>::
append(QString const&)]+0xf3): undefined reference to `QString::free(QString::Da
ta*)'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendE RKS0_[QList<QString>::
append(QString const&)]+0x117): undefined reference to `qt_assert(char const*, c
har const*, int)'
release/main.o:main.cpp:(.text$_ZN5QListI7QStringE6appendE RKS0_[QList<QString>::
append(QString const&)]+0x138): undefined reference to `qt_assert(char const*, c
har const*, int)'
release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11 IncludePathEE4freeEPN9
QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x42):
undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text$_ZN5QListIN12Preprocessor11 IncludePathEE4freeEPN9
QListData4DataE[QList<Preprocessor::IncludePath>::free(QListData::Data*)]+0x6f):
undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1 Ev[QMap<QByteArray, QB
yteArray>::~QMap()]+0x34): undefined reference to `QMapData::continueFreeData(in
t)'
release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1 Ev[QMap<QByteArray, QB
yteArray>::~QMap()]+0x5a): undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text$_ZN4QMapI10QByteArrayS0_ED1 Ev[QMap<QByteArray, QB
yteArray>::~QMap()]+0x70): undefined reference to `qFree(void*)'
release/main.o:main.cpp:(.text$_ZN5QListI8ClassDefED1Ev[QList<ClassDef>::~QList(
)]+0x6d): undefined reference to `qFree(void*)'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\..\bin\moc.exe] Error 1
mingw32-make[2]: Leaving directory `C:/Lib/Qt/2009.05/qt/src/tools/moc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Lib/Qt/2009.05/qt/src/tools/moc'
mingw32-make: *** [sub-moc-make_default-ordered] Error 2

I'm compiling with


C:\Lib\Qt\2009.05\qt>configure -prefix c:\lib\qt\2009.05.m -opensource -no-webki
t -no-phonon -plugin-sql-tds -no-script -no-scripttools -release

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.