"Target does not exist or is not on PATH." "制作"之后

"Target does not exist or is not on PATH." After 'make'-ing

本文关键字:not PATH 制作 之后 on or Target does exist is      更新时间:2023-10-16

我在Ubuntu上运行JGrasp,每次尝试运行make-d程序时都会遇到这个问题。这是完整的错误消息:

 ----jGRASP exec: /home/steve/workspace/project1/BSTTest
 ----jGRASP wedge: could not execute  /home/steve/workspace/project1/BSTTest
 ----   error number 2.
 ----   
 ----   Target does not exist or is not on PATH.
 ----jGRASP: operation complete.

问题是,我可以在工作区的左边看到可执行的BSTTest.exe,我也可以用ls -l确认它的存在。

我花了5个多工时试图在谷歌上搜索(可能已经用完了3-4页的结果)并解决这个问题及其不同的形式,如果能提供任何关于如何解决它或问题可能来自哪里的信息,我将不胜感激。

其他信息:这个程序很好,我可以编译、链接和运行单个文件也很好。问题是我无法运行任何make'd可执行文件,因为JGrasp抛出"未找到"错误。错误不应该出现在我的makefile中,因为我使用的是教授提供给我的makefile

提前非常感谢!

Linux上的可执行文件通常不命名为".exe",jGRASP也不希望它们命名为"exe"。最简单的方法是将makefile中的所有"BSTTest.exe"更改为"BSTTest"。