c - 如何在 Fedora 中编译 -static ncursesw
问题描述
我的程序在 Debian 上编译,但 Fedora 有另一个名为ncurses-static
. 我编译:
$gcc -std=c99 -static moje.o pliki.o -o static_file -lncursesw -ltinfo
我收到 2 个错误:
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libncursesw.a(lib_mouse.o): In function `enable_gpm_mouse':
和
undefined reference to `dlclose'
如何ncursesw
在Fedora中编译静态程序?
我不能自己编译ncurses
我会在普通的 Fedora 系统中编译。
解决方案
推荐阅读
- javascript - 删除 Laravel Mix 中的临时文件
- mysql - mysql 登录路径是无需密码即可访问数据库的安全方法吗?有替代品吗?
- git - GIT: How can i check connection between branches?
- python - Adding fields for User in admin page in django
- windows - Windows DACL 权限
- c - Looking for the definition of `COMPILE_WPRINTF`
- excel - Adding numbers into an alphanumeric value (Ex: "ABC" +1 = "ABD")
- python - Python 逆向词性能
- java - 如何以最短的等待时间加速 Java Selenium 脚本
- vue.js - 如何使用 v-model 绑定解码 HTML 实体‽