2011-11-02 54 views
0

我在構建嵌入式ARM Linux平臺的Qt時遇到鏈接器錯誤,任何想法可能是什麼原因?或如何解決它?鏈接器錯誤:未定義引用'fstat'

.obj/release-shared-emb-arm/qtconcurrentiteratekernel.o: In function getticks()': qtconcurrentiteratekernel.cpp:(.text+0x60): undefined reference to clock_gettime' .obj/release-shared-emb-arm/qthread_unix.o: In function set_thread_data(QThreadData*)': qthread_unix.cpp:(.text+0x40): undefined reference to __tls_get_addr' .obj/release-shared-emb-arm/qthread_unix.o: In function QThreadData::current()': qthread_unix.cpp:(.text+0x37c): undefined reference to __tls_get_addr' .obj/release-shared-emb-arm/qresource.o: In function QDynamicFileResourceRoot::registerSelf(QString const&)': qresource.cpp:(.text._ZN24QDynamicFileResourceRoot12registerSelfERK7QString[QDynamicFileResourceRoot::registerSelf(QString const&)]+0x88): undefined reference to fstat' .obj/release-shared-emb-arm/qfilesystemengine.o: In function QFileSystemEngine::fillMetaData(int, QFileSystemMetaData&)': qfilesystemengine.cpp:(.text+0x490): undefined reference to fstat' .obj/release-shared-emb-arm/qfilesystemengine_unix.o: In function QFileSystemEngine::currentPath()': qfilesystemengine_unix.cpp:(.text+0x34): undefined reference to stat' .obj/release-shared-emb-arm/qfilesystemengine_unix.o: In function QFileSystemEngine::removeDirectory(QFileSystemEntry const&, bool)': qfilesystemengine_unix.cpp:(.text+0x3bc): undefined reference to stat' .obj/release-shared-emb-arm/qfilesystemengine_unix.o: In function QFileSystemEngine::createDirectory(QFileSystemEntry const&, bool)': qfilesystemengine_unix.cpp:(.text+0x5c4): undefined reference to stat' .obj/release-shared-emb-arm/qfilesystemengine_unix.o: In function QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlags<QFileSystemMetaData::MetaDataFlag>)': qfilesystemengine_unix.cpp:(.text+0xda4): undefined reference to lstat' qfilesystemengine_unix.cpp:(.text+0xe34): undefined reference to stat' .obj/release-shared-emb-arm/qtranslator.o: In function QTranslatorPrivate::do_load(QString const&)': qtranslator.cpp:(.text+0x1730): undefined reference to `fstat' collect2: ld returned 1 exit status make[1]: * [../../lib/libQtCore.so.4.8.0] Error 1

回答

相關問題