Redian新闻
>
[转载] UNIX下的一个奇怪问题!
avatar
[转载] UNIX下的一个奇怪问题!# Unix - 噫吁兮,危乎高哉
p*s
1
【 以下文字转载自 Programming 讨论区 】
【 原文由 phageous 所发表 】
从网上下载了一本课本里的源码,包括makefile。
因为需要用里面的源码作一个自己的程序,
原来makefile里的程序名叫ush2a,对应的compile命令是
cc -g -o ush2a ush2a.c makeargv.c
编译后程序正常。
而我的程序名叫msh,对应的compile命令是
cc -g -o msh msh.c makeargv.c
msh.c与ush2a.c完全相同。
而编译的结果却显示:
msh: unable to read ./msgbox: No such file or directory
请问是什么问题?多谢。
avatar
f*a
2
pls give the entire make files. there may be some problems
with
the head of the make file.

【在 p******s 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 【 原文由 phageous 所发表 】
: 从网上下载了一本课本里的源码,包括makefile。
: 因为需要用里面的源码作一个自己的程序,
: 原来makefile里的程序名叫ush2a,对应的compile命令是
: cc -g -o ush2a ush2a.c makeargv.c
: 编译后程序正常。
: 而我的程序名叫msh,对应的compile命令是
: cc -g -o msh msh.c makeargv.c
: msh.c与ush2a.c完全相同。

avatar
i*n
3
./msh
please type "which msh" to make sure that it is your msh.
You may have msh in /usr/bin
msh is an nmh shell (and BBoard reader).
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。