【问题标题】:connected to the project at Ada QT libraries连接到 Ada QT 库中的项目
【发布时间】:2014-04-28 05:28:10
【问题描述】:

当连接到 Ada QT 库上的项目时会产生错误。

QT;使用 QT; .....

日志。 E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0x14): 未定义引用QChar1_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0x30): undefined reference toQChar2_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 toQChar4_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0x8b): 未定义引用QChar5_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0xa7): undefined reference toQChar6_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 toQChar8_create' E:\GNAT\2013\qtada\qt-qchar.o:qt-qchar.adb:(.text+0xe3): 未定义引用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.50 秒)

【问题讨论】:

  • 看起来像一个链接器错误。您需要确定缺少的包含这些函数的 QT 库(例如 libqt),然后将 -lqt 之类的内容添加到链接器选项以链接到它。

标签: qt5 ada


【解决方案1】:

您安装的 QT、QTADA 库是否与 Mingw-Toolchain 兼容?也关于位数 32/64。您的库的版本和编译/链接器命令会很有帮助。 您还可以考虑以下提示: GMP with MinGW on Windows

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-13
    • 2019-08-14
    • 1970-01-01
    • 1970-01-01
    • 2012-05-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多