cygwin 上未定义的参考构建 ncurses
Windows XP:
我最终想安装 DDD(调试器)。它不适用于 Windows 的二进制形式。当我获取其源代码并尝试配置它时,它抱怨不存在术语上限库。因此,我获取了 ncurses,并在使用 Cygwin 终端进行了一次基本成功的构建后得到了这个:
../lib/libncurses.a(lib_ttyflags.o)(.text+0x41):lib_ttyflags.c: undefined reference to `_nc_mingw_ioctl'
../lib/libncurses.a(lib_ttyflags.o)(.text+0xd1):lib_ttyflags.c: undefined reference to `_nc_mingw_ioctl'
Windows XP:
I ultimately wanted to install DDD (the debugger). Its not available in binary form for Windows. When I got its source and tried to configure it, it complained that no term caps library was present. So I acquire ncurses and got this after a mostly successfull build using Cygwin Terminal:
../lib/libncurses.a(lib_ttyflags.o)(.text+0x41):lib_ttyflags.c: undefined reference to `_nc_mingw_ioctl'
../lib/libncurses.a(lib_ttyflags.o)(.text+0xd1):lib_ttyflags.c: undefined reference to `_nc_mingw_ioctl'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我这样做时,它对我有用:
“mingw”需要 --enable-term-driver (我在 msys 上测试过,但这应该在 cygwin 上同样有效),并且 --enable-term-driver 需要 --启用 sp 函数。
请参阅此处:http://lists.gnu.org/archive/html/info -gnu/2011-02/msg00020.html
It works for me when I do this:
The --enable-term-driver was needed for "mingw" (I tested on msys, but this should work equally well on cygwin), and --enable-term-driver requires --enable-sp-funcs.
See here: http://lists.gnu.org/archive/html/info-gnu/2011-02/msg00020.html