【发布时间】:2015-02-26 13:15:46
【问题描述】:
我正在尝试使用 MinGW 在 Windows 上编译 this 项目的 .dll。一切正常,除了一点:输出是 .exe 文件 - 不是 .dll。
这是 libtool 给我的通知:
*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
好吧,我在项目选项 -no-undefined 中没有找到任何地方,这就是为什么我想知道应该修复哪些符号(以及如何修复??)才能得到需要 .dll?
也许链接器有一些问题?我不知道在哪里更改($LIBRARY_PATH = /c/mingw 已经),这就是为什么在make 期间弹出此警告:
*** Warning: linker path does not have real file for library -lz.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libz and none of the candidates passed a file format test
*** using a file magic. Last file checked: c:/Strawberry/c/bin/../lib/gcc/x86_64
-w64-mingw32/4.8.3/../../..//libz.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
【问题讨论】: