2014-04-28 42 views
0

當連接到Ada QT庫上的項目時會產生錯誤。連接到Ada QT庫的項目

與QT;使用QT; .....

Log。 E:\ GNAT \ 2013 \ qtada \ qt-qchar.o:qt-qchar.adb :(.text + 0x14):undefined reference to QChar1_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0x30): undefined reference to QChar2_create' E:\ GNAT \ 2013 \ qtada \ qt-qchar.o :qt-qchar.adb :(.text + 0x5a):未定義引用QChar3_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0x6f): undefined reference to QChar4_create' E:\ GNAT \ 2013 \ qtada \ qt-qchar.o:qt-qchar.adb :(.text + 0x8b):undefined參考QChar5_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0xa7): undefined reference to QChar6_create' E:\ GNAT \ 2013 \ qtada \ qt-qchar.o:qt-qchar.adb :(.text + 0xbb):未定義參考QChar7_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0xcf): undefined reference to QChar8_create' E:\ GNAT \ 2013 \ qtada \ qt-qchar.o:qt-qchar.adb :(.text + 0xe3):undefined參考QChar_latin1' e:/gnat/2013/bin/../libexec/gcc/i686-pc-mingw32/4.7.4/ld.exe: E:\GNAT\2013\qtada\qt-qchar.o: bad reloc address 0x20 in section .eh_frame' e:/ gnat/2013/bin /../ libexec/gcc/i686-pc-mingw32/4.7 .4/ld.exe:最終鏈接失敗:操作無效 collect2.exe:錯誤:ld返回1退出狀態 gprbuild:main.adb鏈接失敗 [2014-04-28 08:15:40]進程退出狀態4(已用時間:01.50s)

+1

看起來像一個鏈接器錯誤。您需要識別包含這些函數的缺少的QT庫(例如libqt),然後在鏈接器選項中添加諸如'-lqt'之類的內容以鏈接到它。 –

回答

0

您安裝的QT,QTADA庫是否與Mingw-工具鏈?關於比特位32/64。您的庫的版本和編譯/鏈接器命令將會很有幫助。 您可能還會考慮以下提示: GMP with MinGW on Windows