- 论坛徽章:
- 0
|
各位老大,我下载了用curses写的通用菜单修改后的正确程序,
http://bbs.chinaunix.net/viewthr ... mp;highlight=curses
但是在编译的时候总是出错,看了其他几位的编译出错的报错,好象没一个是我这样的,我刚刚开始看curses,很多东西不明白,请各位帮我看看,指点一下。
"menu.c", line 24: warning: tokens ignored at end of directive line
"menu.c", line 25: warning: tokens ignored at end of directive line
"menu.c", line 123: error: Syntax error before or at: ;
"menu.c", line 123: error: undefined symbol: next
"menu.c", line 123: warning: improper pointer/integer combination: op "="
"menu.c", line 127: error: Syntax error before or at: ;
"menu.c", line 127: error: undefined symbol: menu_code
"menu.c", line 128: error: Syntax error before or at: ;
"menu.c", line 128: error: undefined symbol: item_order
"menu.c", line 129: error: Syntax error before or at: ;
"menu.c", line 129: error: undefined symbol: item
"menu.c", line 129: error: Syntax error before or at: )
"menu.c", line 130: error: Syntax error before or at: ;
等等等等
好象是程序过程就有错的地方,但第一、二句是怎么回事儿呢?
我的curses.h里好象东西不多啊。谢谢大家。 |
|