Error Launching external scanner info generator - gcc link problem on MingGW

会有一股神秘感。 提交于 2019-12-21 19:43:09

问题


Error Launching external scanner info generator - gcc link problem on MingGW

Error launching external scanner info generator (sh -c 'g++ -E -P -v -dD C:/Documents and Settings/user1/workspace123/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp ')

Error launching external scanner info generator (sh -c 'gcc -E -P -v -dD C:/Documents and Settings/user1/workspace123/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c ')

this problem occuring in eclipse-SDK-3.2.2-win32 -cdt can any one solve this problem .did any one have any solution to this problem .please help to me to solve this problem . yours faithfully. anilkumar


回答1:


Also had this error. Problem is g++/gcc (MinGW/bin) is not in the search path. To correct do the following:

  • Install MinGW (http://www.mingw.org/) if not installed yet.
  • Add path to MinGW/bin (c:\MinGW\bin by default) to PATH environment variable.

This solved an error in my case.

Also make sure you're not using the restart command from eclipse. You'll need to shutdown Eclipse completely and then start it again for the change to take effect.




回答2:


I added c:\MinGW\bin to my Path, but I was still having a similar problem.

Setting "Cygwin GCC" toolchain in project properties eliminated my warning messages:

  1. In Eclipse, right click on C++ project and select properties
  2. Select C/C++ Build > Tool Chain Editor
  3. Under "Current toolchain", select "Cygwin GCC"



回答3:


I'm presently trying to resolve this issue for myself, however on a Mac and with AVR-GCC on Eclipse... in my search I found this answer which seems more applicable to you than to me:

http://www.codeproject.com/KB/tips/CPP_Dev_eclipse_CDT.aspx

It speaks specifically to Win32 and there are examples more similar to your error...

Best of luck.



来源:https://stackoverflow.com/questions/1919525/error-launching-external-scanner-info-generator-gcc-link-problem-on-minggw

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!