Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Error launching external scanner info generator
Error launching external scanner info generator [message #233002] Thu, 16 April 2009 02:32 Go to next message
Nicole is currently offline NicoleFriend
Messages: 26
Registered: July 2009
Junior Member
I'm trying to run Eclipse with Cygwin supplying the gcc compiler, but I
get
the following message
Error launching external scanner info generator
I've tried adding c:\Program Files\DCygwin\bin to the path, but that does
not help.
Re: Error launching external scanner info generator [message #233269 is a reply to message #233002] Fri, 24 April 2009 15:04 Go to previous messageGo to next message
Marc Bertola is currently offline Marc BertolaFriend
Messages: 2
Registered: July 2009
Junior Member
Wow - I just posted the solution to this. I didn't notice you had the same
problem.

In short:

- Recent versions of Cygwin no longer have gcc.exe or g++.exe. These files
have been replaced with .lnk files that point to gcc-3.exe and g++-3.exe
(or whatever)

- Some tools in Eclipse need to launch "gcc" or "g++" to generate some
sort of info. The OS cannot find gcc.exe or g++.exe and so it returns an
error.

- I have found that the following procedure works for me:
1. delete gcc.exe.lnk and g++.exe.lnk from cygwin/bin
2. Copy gcc-3.exe to gcc.exe
3. Copy g++-3.exe to g++.exe

Yes, it's definitely a hack, but now I can work. I guess this issue will
have to be addressed by someone, but I'm very new to the whole Eclipse
community and I have no idea who does what yet ;)

Good luck! I lost half a day on this problem :\
Re: Error launching external scanner info generator [message #233849 is a reply to message #233269] Fri, 08 May 2009 19:25 Go to previous message
Steve Redmond is currently offline Steve RedmondFriend
Messages: 1
Registered: July 2009
Junior Member
Marc Bertola wrote:

...
> - I have found that the following procedure works for me:
> 1. delete gcc.exe.lnk and g++.exe.lnk from cygwin/bin
> 2. Copy gcc-3.exe to gcc.exe
> 3. Copy g++-3.exe to g++.exe

> Yes, it's definitely a hack, but now I can work. I guess this issue will
> have to be addressed by someone, but I'm very new to the whole Eclipse
> community and I have no idea who does what yet ;)
...

I had the same problem and spent too much more than 1/2 day chasing the
issue. I too am new, to Eclipse/CDT/Cygwin anyway, but old enough to
believe that the computer shall not win...in the end there can only be One!

The 'hack' suggested previously, by copying and renaming gcc-3.exe and
g++-3.exe worked OK for me. I think I have another solution which does
not require altering the 'original' Cygwin package.

In Project Properties C/C++ Build Discovery Options, go to the "Compiler
innvocation command" and enter gcc-3 and g++-3, instead of gcc and g++
respectively. Restart Eclipse. That seemed to work for me, at least on my
little Hello World example. I didn't purge and start the whole
installation process all over again, but I did restore Cygwin without the
hack to try this.

There are many 'How To' tutorials around for setup of Eclipse/CDT/Cygwin
that miss this gcc/g++ naming issue. Most installation and
problem-solving instructions only address the need for a proper PATH to
the \Cygwin\bin directory. This problem seems to be too new for any of
them to have caught it. So thanks to Bugzilla for being among the first
to post a solution.

If that is all there is to this, I hope that the CDT powers that be will
consider automatically discovering the correct gcc/g++ or gcc-#/g++-#
naming at an appropriate point, or alternately adding a few words about it
in the C/C++ Development User Guide, Getting Started help.

Thanks for reading,

Steve
Previous Topic:How to link a toolbar to a perspective?
Next Topic:yacc and lex
Goto Forum:
  


Current Time: Fri Apr 26 23:12:51 GMT 2024

Powered by FUDForum. Page generated in 0.03068 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top