Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse C/C++ help, gcc not found.
Eclipse C/C++ help, gcc not found. [message #908235] Wed, 05 September 2012 01:51 Go to next message
Alex Gilbreath is currently offline Alex GilbreathFriend
Messages: 1
Registered: September 2012
Junior Member
I saw the 'before you begin' section where you have to install MinGW for Eclipse to work correctly (Eclipse Juno). Both my C++ test project and C project have the following errors:

Program "gcc" not found in PATH
sh -c "autoreconf -i"

and the C++ has the error

Program "g++" not found in PATH

Did I miss that you had to install something else? Did I have to manually add some PATH variable and I have no clue what the second error is saying. Can anyone tell me where I'm being stupid?

Windows 7 64-bit.
Re: Eclipse C/C++ help, gcc not found. [message #908498 is a reply to message #908235] Wed, 05 September 2012 13:30 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 9/4/2012 7:51 PM, Alex Gilbreath wrote:
> I saw the 'before you begin' section where you have to install MinGW for
> Eclipse to work correctly (Eclipse Juno). Both my C++ test project and C
> project have the following errors:
>
> Program "gcc" not found in PATH
> sh -c "autoreconf -i"
>
> and the C++ has the error
>
> Program "g++" not found in PATH
>
> Did I miss that you had to install something else? Did I have to
> manually add some PATH variable and I have no clue what the second error
> is saying. Can anyone tell me where I'm being stupid?
>
> Windows 7 64-bit.
Please read sticky posts at top of forum.
Re: Eclipse C/C++ help, gcc not found. [message #910796 is a reply to message #908498] Mon, 10 September 2012 12:05 Go to previous messageGo to next message
wone chen is currently offline wone chenFriend
Messages: 2
Registered: September 2012
Junior Member
yes you shuold read more
Re: Eclipse C/C++ help, gcc not found. [message #917013 is a reply to message #908498] Wed, 19 September 2012 18:31 Go to previous messageGo to next message
josh schwartzbeck is currently offline josh schwartzbeckFriend
Messages: 1
Registered: September 2012
Junior Member
Russell Bateman wrote on Wed, 05 September 2012 09:30
On 9/4/2012 7:51 PM, Alex Gilbreath wrote:
> I saw the 'before you begin' section where you have to install MinGW for
> Eclipse to work correctly (Eclipse Juno). Both my C++ test project and C
> project have the following errors:
>
> Program "gcc" not found in PATH
> sh -c "autoreconf -i"
>
> and the C++ has the error
>
> Program "g++" not found in PATH
>
> Did I miss that you had to install something else? Did I have to
> manually add some PATH variable and I have no clue what the second error
> is saying. Can anyone tell me where I'm being stupid?
>
> Windows 7 64-bit.
Please read sticky posts at top of forum.


This post is among the top google search results for this question and like many of the top google search results involving software development, the answers tell the asker to look somewhere else. The diligent asker will take the advice and look at the sticky posts at the top of the forum as such:

Quote:
sticky: Trouble with Android Development Tools (ADT)? READ THIS FIRST

Not Applicable

Quote:
sticky: Trouble getting Eclipse to run? READ THIS FIRST

Advises to install the latest or correct architecture of the JVM.
Not Applicable

Quote:
Announcement: New forum members, READ THIS FIRST.

Mentions forum etiquette and that C/C++ developers should look at another sticky post:
Quote:
Problems with C/C++ in Eclipse? Read this.

states that C/C++ developers are welcome to the newcomer group but might get more help asking in the cdt specific group: http://www.eclipse.org/forums/eclipse.tools.cdt
(no stickies here)

Quote:
Announcement: Linux + Eclipse users, read this!

Not Applicable (Running Windows 7, per original post)

Quote:
sticky: Problems with C/C++ in Eclipse? Read this.

same as above

After spending the time to read through all the stickies, the newcomer trying to get their C/C++ environment working in eclipse has been told several times to look and ask somewhere else, specifically the CDT forums which have no stickies or instructions to get your eclipse project to recognize your gcc/g++ (even if you have it installed and it's in your PATH).

My point is that it would be hugely beneficial to the developer community as a whole if we were more helpful to each other and consider that answering someone's question directly will help many, many other people as well.

In my case, I found that the toolchain is generated when the project is created and if you don't have the tools installed before hand, you need to manually configure your project's toolchain or re-create the project. If you don't have gcc/g++ on Windows you can use the recommended MinGW installer at sourceforge. This forum won't allow me to link externally to MinGW or I would.

Edit: See also: http://wiki.eclipse.org/CDT/User/FAQ#Are_there_complete_HowTos_for_setting_up_the_CDT.3F

[Updated on: Wed, 19 September 2012 18:40]

Report message to a moderator

Re: Eclipse C/C++ help, gcc not found. [message #917078 is a reply to message #917013] Wed, 19 September 2012 19:56 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 9/19/2012 12:31 PM, josh schwartzbeck wrote:
> Russell Bateman wrote on Wed, 05 September 2012 09:30
>> On 9/4/2012 7:51 PM, Alex Gilbreath wrote:
>> > I saw the 'before you begin' section where you have to install MinGW
>> for
>> > Eclipse to work correctly (Eclipse Juno). Both my C++ test project
>> and C
>> > project have the following errors:
>> >
>> > Program "gcc" not found in PATH
>> > sh -c "autoreconf -i"
>> >
>> > and the C++ has the error
>> >
>> > Program "g++" not found in PATH
>> >
>> > Did I miss that you had to install something else? Did I have to
>> > manually add some PATH variable and I have no clue what the second
>> error
>> > is saying. Can anyone tell me where I'm being stupid?
>> >
>> > Windows 7 64-bit.
>> Please read sticky posts at top of forum.
>
>
> This post is among the top google search results for this question and
> like many of the top google search results involving software
> development, the answers tell the asker to look somewhere else. The
> diligent asker will take the advice and look at the sticky posts at the
> top of the forum as such:
>
> Quote:
>> sticky: Trouble with Android Development Tools (ADT)? READ THIS FIRST
>
> Not Applicable
>
> Quote:
>> sticky: Trouble getting Eclipse to run? READ THIS FIRST
>
> Advises to install the latest or correct architecture of the JVM.
> Not Applicable
>
> Quote:
>> Announcement: New forum members, READ THIS FIRST.
>
> Mentions forum etiquette and that C/C++ developers should look at
> another sticky post:
> Quote:
>> Problems with C/C++ in Eclipse? Read this.
>
> states that C/C++ developers are welcome to the newcomer group but might
> get more help asking in the cdt specific group:
> http://www.eclipse.org/forums/eclipse.tools.cdt
> (no stickies here)
>
> Quote:
>> Announcement: Linux + Eclipse users, read this!
>
> Not Applicable (Running Windows 7, per original post)
>
> Quote:
>> sticky: Problems with C/C++ in Eclipse? Read this.
>
> same as above
>
> After spending the time to read through all the stickies, the newcomer
> trying to get their C/C++ environment working in eclipse has been told
> several times to look and ask somewhere else, specifically the CDT
> forums which have no stickies or instructions to get your eclipse
> project to recognize your gcc/g++ (even if you have it installed and
> it's in your PATH).
>
> My point is that it would be hugely beneficial to the developer
> community as a whole if we were more helpful to each other and consider
> that answering someone's question directly will help many, many other
> people as well.
>
> In my case, I found that the toolchain is generated when the project is
> created and if you don't have the tools installed before hand, you need
> to manually configure your project's toolchain or re-create the project.
> If you don't have gcc/g++ on Windows you can use the recommended MinGW
> installer at sourceforge. This forum won't allow me to link externally
> to MinGW or I would.

The sticky about CDT at the top of this forum suggests you ask your
C/C++ question in the Eclipse CDT forum. It doesn't say there are more
stickies there.

The Eclipse CDT forum is a place, like the Eclipse newcomers forum,
where you ask a question and get it answered. In this case, lots of
Eclipse C/C++ users are there to help solve your problems, more than
haunt the newcomers' forum. It's not to put you off.
Previous Topic:Eclipse auto complete suggestions not working properly
Next Topic:Adobe Flash Builder plugin for eclipse
Goto Forum:
  


Current Time: Fri Apr 19 10:45:59 GMT 2024

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

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

Back to the top