Mac Eclipse GCC 4.9.0“启动配置中指定的程序文件不存在” [英] Mac Eclipse GCC 4.9.0 "The program file specified in the launch configuration does not exist"

查看:175
本文介绍了Mac Eclipse GCC 4.9.0“启动配置中指定的程序文件不存在”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上使用eclipse,我只是在我的working项目中设置了设置,告诉Eclipse使用我的GCC 4.9.0而不是4.2.1,但是当我运行我的程序时, test.cpp(我正在关注Bill Weinman的视频,并且我已经完成了他在视频中所做的每一步)它说

在启动配置中指定的程序文件文件/ Users / Tanner / Documents / workspace / Working / Debug / Working不存在



但我知道在更改设置之前,调试文件夹中的working可执行文件确实存在。不知何故,当我改变了我的设置并尝试再次运行version-test.cpp时,它消失了或去了别的地方。但在Weinman的视频中,他工作并转而使用后来的GCC版本。我没有经历过这些东西,我只是一个初学者,无法解决这个问题。请帮助。

解决方案

您需要进入工作文件夹的属性(如果您遵循lynda.com程序,将理解工作文件夹),并在C / C ++ Build - > Environment菜单下(我们在LIBRARY_PATH,PATH和CPATH中添加的位置)变量添加到DYLD_LIBRARY_PATH中,值为$ {HOME} / hpc-gcc / lib。 / p>

请记住,C / C ++构建菜单用于构建和调试,因此项目无法找到构建过程的库。



你会很开心。


I'm on eclipse on a mac and I just set the settings in my "working" project telling Eclipse to use my GCC 4.9.0 instead of the 4.2.1 but when I run my program which is just a version-test.cpp (I'm following Bill Weinman's videos and I've done every step he did on the video) it says

"The program file specified in the launch configuration does not exist. The file /Users/Tanner/Documents/workspace/Working/Debug/Working does not exist"

But I know that before I changed the settings, that "working" executable in the debug folder did exist. Somehow it vanished or went someplace else after I changed my settings and tried to run the version-test.cpp again. But in Weinman's video his worked and switched to the later GCC version. I'm not experienced at all with this stuff I am just a beginner, having trouble trying to solve this problem. Please help.

解决方案

You need to go into the properties of the Working folder (if you are following the lynda.com program you will understand the working folder) and under C/C++ Build -> Environment menu (Where we added in the LIBRARY_PATH, PATH, AND CPATH) variables and add in DYLD_LIBRARY_PATH with a value of ${HOME}/hpc-gcc/lib.

Remember the C/C++ Build "menus" are for build and debug, so the project is not able to find the library for the building process.

And you will be good to go.

这篇关于Mac Eclipse GCC 4.9.0“启动配置中指定的程序文件不存在”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆