更改应用程序文件的名称(.C文件)

时间:2022-03-26 16:24:03

I changed the name of an modified application to seperate it from the basic application. Lets say the .C file of the old application is "OldApplication.C" and of the new modified one is "NewApplication.C" Unfortunately, when trying to start the new modified application in terminal by typing "NewApplication" I get:

我更改了修改后的应用程序的名称,以便将其与基本应用程序分开。让我们说旧应用程序的.C文件是“OldApplication.C”,新修改的文​​件是“NewApplication.C”。不幸的是,当我尝试通过键入“NewApplication”在终端中启动新修改的应用程序时,我得到:

NewApplication: command not found

Two Question:

  1. How can I make my new application executeable?
  2. 如何让我的新应用程序可执行?

  3. Can someone give me a brief overview about the files of a project/application and their functions?
  4. 有人能给我一个关于项目/应用程序文件及其功能的简要概述吗?

greetings, streight

1 个解决方案

#1


1  

The mistake of this kind

这种错误

make: * No rule to make target OldApplication.dep', needed byMake/linuxGccDPOpt/dependencies'. Stop.

make:*没有规则来制作目标OldApplication.dep',需要使用make / linuxGccDPOpt / dependencies'。停止。

often occurs in situation when the Makefile ceases to comply with the structure of the whole project.

经常发生在Makefile不再符合整个项目结构的情况下。

In your case make script obviously trying to find the file that was renamed by you and therefore it fails with en error. I think that you should explore the structure of your Makefile and replace all the changed file names with its new versions.

在你的情况下,make脚本显然试图找到你重命名的文件,因此它失败并出现错误。我认为您应该探索Makefile的结构,并用其新版本替换所有已更改的文件名。

Also you say the you are refused to launch your new executable, but what else could be expected since the project was not compiled?

另外你说你被拒绝启动你的新可执行文件,但是由于项目没有被编译,还有什么可以预期呢?

#1


1  

The mistake of this kind

这种错误

make: * No rule to make target OldApplication.dep', needed byMake/linuxGccDPOpt/dependencies'. Stop.

make:*没有规则来制作目标OldApplication.dep',需要使用make / linuxGccDPOpt / dependencies'。停止。

often occurs in situation when the Makefile ceases to comply with the structure of the whole project.

经常发生在Makefile不再符合整个项目结构的情况下。

In your case make script obviously trying to find the file that was renamed by you and therefore it fails with en error. I think that you should explore the structure of your Makefile and replace all the changed file names with its new versions.

在你的情况下,make脚本显然试图找到你重命名的文件,因此它失败并出现错误。我认为您应该探索Makefile的结构,并用其新版本替换所有已更改的文件名。

Also you say the you are refused to launch your new executable, but what else could be expected since the project was not compiled?

另外你说你被拒绝启动你的新可执行文件,但是由于项目没有被编译,还有什么可以预期呢?