- 论坛徽章:
- 0
|
如何在终端上不出现login,直接执行应用程序。
f7zz你好,你的tmgr终端管理程序,我编译时出现:
$ cc tmgr.c -o tmgr -lcurses
"tmgr.c", line 16: error: undefined symbol: charsCmd
"tmgr.c", line 16: error: cannot dereference non-pointer type
"tmgr.c", line 16: error: undefined symbol: sTmp
"tmgr.c", line 16: error: cannot dereference non-pointer type
"tmgr.c", line 25: warning: improper pointer/integer combination: arg #1
"tmgr.c", line 26: warning: improper pointer/integer combination: arg #1
"tmgr.c", line 32: error: undefined symbol: sCmd
"tmgr.c", line 33: warning: improper pointer/integer combination: arg #1
"tmgr.c", line 34: warning: improper pointer/integer combination: arg #1
"tmgr.c", line 123: error: undefined symbol: charsErr
"tmgr.c", line 123: error: cannot dereference non-pointer type
"tmgr.c", line 135: error: undefined symbol: sErr
"tmgr.c", line 135: warning: improper pointer/integer combination: arg #2
"tmgr.c", line 136: warning: improper pointer/integer combination: arg #2
"tmgr.c", line 147: error: undefined symbol: charsTmp
"tmgr.c", line 147: error: cannot dereference non-pointer type
"tmgr.c", line 148: error: Syntax error before or at: *
"tmgr.c", line 159: error: undefined symbol: fp
"tmgr.c", line 159: warning: improper pointer/integer combination: op "="
"tmgr.c", line 160: error: undefined symbol: sTmp
"tmgr.c", line 160: warning: improper pointer/integer combination: arg #1
"tmgr.c", line 160: warning: improper pointer/integer combination: arg #3
"tmgr.c", line 161: warning: improper pointer/integer combination: arg #1
怎么回事,请指教???
还有前面的fdlj53u的朋友你的文件2:face.c (一个屏幕显示的操作界面,修改一下可以用的)
我用cc face.c -o face -lcurses也出现:
"face.c", line 190: warning: statement not reached
"face.c", line 297: warning: end-of-loop code not reached
"face.c", line 343: warning: argument is incompatible with prototype: arg #2
"face.c", line 373: warning: improper pointer/integer combination: arg #1
这是怎么回事,要改正哪里,请哪位大侠指教!
|
|