MacOS下用Eclipse写C++编译失败解决方法。
前天昨天利用间隙时间把eclipse的IDE for C/C++下载好了。
然后在编译过程中还是遇到各种各样的问题。
不能编译,显示binary not found。
百度谷歌bing 优快云/博客园/codeforge都查了一遍。
给出两种方法。
1.Right click on the project > Properties > C/C++ Build > Settings > Binary Parsers > Select just Windows PE and move it up
附:https://blog.youkuaiyun.com/bojackhosreman/article/details/52451325
操作完之后,运行程序之前,先build,再run。
2.这是自己搞出来的。
先点击小锤子bulid一下。
然后你再点击run一下。
这时候不出意外会告诉你binary not found或者command not found等字眼。
我接下来解决方法是点击这个小虫子debug一下。
然后会出现选项,点确定就完事了。
然后重新build,run。
完事。
2019.3.19新增
3.代码写完点击build,发现代码有错误。
修改完毕,再次点击build,仍然显示有错误,其实这时候错误已经改完了,但是build不了run不了。
自己采取的方法是上面写的2,直接点击小虫子debug一下,然后显示正常。0 error;0 warning;再点击run,编译成功。