在ncurses libreries上做一些基本的例子,我遇到了一些问题.
实际上,我没有得到我所期望的(消息打印),并且从eclipse进入调试,我得到(在控制台区域)“错误打开终端:未知.”
遵循代码:
#include
编译器选项,在Eclipse控制台的“Build project”命令中提供:
make all
Building file: ../source/Curses_01.c
Invoking: GCC C Compiler
gcc -Incurses -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"source/Curses_01.d" -MT"source/Curses_01.d" -o"source/Curses_01.o" "../source/Curses_01.c"
Finished building: ../source/Curses_01.c
Building target: Curses_01
Invoking: GCC C Linker
gcc -o"Curses_01" ./source/Curses_01.o -lcurses
Finished building target: Curses_01
提前谢谢大家!
最佳答案
原文链接:https://www.f2er.com/linux/441047.html