我编译一个应用使用Qt静态库编译,但是编译后发现,生成出来的exe还是回去寻找Qt的dll库
链接的时候会自动把 --enable-auto-import打开。
编译的时候已经加上 -static选项,但是为什么还会有下面的问题?
谢谢
下面是部分输出,
16staticMetaObjectE (auto-import)
Info: resolving QNetworkAccessManager::staticMetaObject by linking to __imp___ZN21QNetworkAccessManager16staticMetaObjectE (auto-import)
Info: resolving QWebPage::staticMetaObject by linking to __imp___ZN8QWebPage16staticMetaObjectE (auto-import)
Info: resolving QCleanlooksStyle::staticMetaObject by linking to __imp___ZN16QCleanlooksStyle16staticMetaObjectE (auto-import)
c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols
from auto-imported DLLs.