Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » getting started(Cygwin, CDT, Windows 7 no tool chains no compile)
getting started [message #535830] Tue, 25 May 2010 21:04 Go to next message
David is currently offline DavidFriend
Messages: 5
Registered: May 2010
Location: mountains
Junior Member
this is going to sound old but I've been searching for this answer for 2 days, and I'm going to post it. Forgive my ignorance Smile but here goes:

This is my first experience with Eclipse. It seems I haven't set it up correctly.

I am running windows 7 (32 bit)

I Have installed cygwin with gcc g++/make/GDB libs.
Downloaded and run eclipse C/C++ development version. (CDT)
Added c:\cygwin\bin to path.
Cygwin now runs and can be seen from anywhere on the computer.

In windows dos prompt:

GCC returns "access denied" to all queries. Even from administrator cmd prompt.

Cygwin shell prompt accesses gcc


Eclipse still does not see any gcc compilers/debuggers/helpfiles


trying to build generates an error tree with no information about errors.
trying to run generates: "Launch failed. Binary not found"

Isn't there be a wiki or getting started page to tell how to set this up in win 7?

command prompt c:\workspace\project\ gcc-4 cfile.c works,

how do I get eclipse to use gcc-4 ?
how do I get the help files to respond to error messages ?

Thanks for your time. Smile
Re: getting started [message #535945 is a reply to message #535830] Wed, 26 May 2010 12:29 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 5/25/2010 3:04 PM, David wrote:
> this is going to sound old but I've been searching for this answer for 2
> days, and I'm going to post it. Forgive my ignorance :) but here goes:
>
> This is my first experience with Eclipse. It seems I haven't set it up
> correctly.
>
> I am running windows 7 (32 bit)
>
> I Have installed cygwin with gcc g++/make/GDB libs.
> Downloaded and run eclipse C/C++ development version. (CDT)
> [snip]
> Thanks for your time. :)

http://www.eclipse.org/forums/index.php?t=msg&th=161206& amp;start=0&
Re: getting started [message #535990 is a reply to message #535945] Wed, 26 May 2010 15:03 Go to previous messageGo to next message
David is currently offline DavidFriend
Messages: 5
Registered: May 2010
Location: mountains
Junior Member
Laughing yeah, that's the page which told me I might find some help by posting here

[Updated on: Wed, 26 May 2010 15:05]

Report message to a moderator

Re: getting started [message #538857 is a reply to message #535830] Tue, 08 June 2010 19:44 Go to previous messageGo to next message
David is currently offline DavidFriend
Messages: 5
Registered: May 2010
Location: mountains
Junior Member
I have re installed the operating system, reinstalled, cygwin with every single library available.

the tool chains do not show in the project file dialogue!

I am beginning to get the idea that Eclipse cannot work with cygwin. I have spent days on hundreds of sites and there is no reference to this problem.

please. How do you get eclipse to interact with gcc? my errors are blank, my compiles go nowhere. it generates no files and I must say, I'm getting a little frustrated. Crying or Very Sad
Re: getting started [message #539070 is a reply to message #535830] Wed, 09 June 2010 14:36 Go to previous messageGo to next message
David is currently offline DavidFriend
Messages: 5
Registered: May 2010
Location: mountains
Junior Member
the tool chain does not show in Eclipse.
The compiles give "No rule to make target 'all'
It can't access C language syntax and usage files-- you know the ones which tell you which 'h file' to include for sprintf etc.

reinstalled cygwin with all libraries. I have been able to compile c++ files with cygwin from commandline.

My co workers can't install eclipse to work with cygwin either.

My brother's computer does the same.

You users... please point me to the answer. This party isn't any fun.

This product is getting a black eye at our company because it doesn't produce. it's a real "point of sale" item.
Sad

[Updated on: Wed, 09 June 2010 14:40]

Report message to a moderator

Re: getting started [message #539093 is a reply to message #538857] Wed, 09 June 2010 15:28 Go to previous messageGo to next message
HagenFriend
Messages: 90
Registered: April 2010
Member
On 06/08/2010 09:44 PM, David wrote:
> I have spent days on hundreds of sites and there is no reference to this
> problem.

Maybe this is because nobody else (except you) *has* this problem.!??!

Or you are bad at using search engines.

Google "eclipse cygwin" resulted in 566.000 hits. The second hit here is
a tutorial (from Christopher T.S. Allen) on how to get it to work.
(Google language setting is "English".)


Think about it. Also consider post your question in the CDT forum/s,
like Russ Bateman (and Eric Rizzo) already suggested.
Re: getting started [message #543522 is a reply to message #535830] Tue, 29 June 2010 16:44 Go to previous messageGo to next message
ardynne is currently offline ardynneFriend
Messages: 1
Registered: June 2010
Junior Member
I am having exactly the same problem and is driving me nuts.
Have you found a solution for it?
Thanks
Re: Using GCC-4 in Eclipse [message #878144 is a reply to message #535830] Mon, 28 May 2012 17:02 Go to previous messageGo to next message
David Romero is currently offline David RomeroFriend
Messages: 1
Registered: May 2012
Junior Member
Hello All,

I just installed Eclipse + CDT + a bunch of other stuff. I already had cygwin in my machince.

The problem I have is that I cannot find where in the options/preferences I can specify to Eclipse that, when using the GNU/GCC Toolchain, the excutable is gcc-4 instead of gcc. Is this possible?

Should I just go and copy/rename the gcc-4 file to gcc?

Thanks,
David
Re: Using GCC-4 in Eclipse [message #878180 is a reply to message #878144] Mon, 28 May 2012 18:58 Go to previous message
Denis Roy is currently offline Denis RoyFriend
Messages: 484
Registered: October 2004
Location: Ottawa, Ontario, Canada
Senior Member

Perhaps this can help?

For windows, MinGW, and Cygwin are the two main choices for acquiring the GNU toolchain:

Cygwin is a port of the Linux environment to Windows. It provides a compatibility layer in a set of DLLs. These DLLs are GPL licensed, making any code that links to them also subject to the GPL. Cygwin, however, does provide the fullest implementation of the GNU toolchain by supporting the GNU libc C runtime library. Note: currently Cygwin >= version 3.4.4-999 is not supported since gcc and g++ commands cannot be launched from the windows' native shell.


MinGW is a port of the GNU toolchain to the Windows platform. The biggest difference over Cygwin is that MinGW uses the Windows C runtime libraries (mscvrt) instead of GNU's libc. As a result, a compatibility layer is not required, thus avoiding the GPL issues with Cygwin. There are differences, though, between the Windows and GNU C runtime libraries that will make writing portable applications more difficult.

However, MinGW provides the best integration support with the CDT due to it's direct support for the Windows environment.


http://help.eclipse.org/galileo/topic/org.eclipse.cdt.doc.user/concepts/cdt_c_before_you_begin.htm


Denis Roy
Eclipse Webmaster -- webmaster@eclipse.org

[Updated on: Mon, 28 May 2012 18:58]

Report message to a moderator

Previous Topic:I made changes to the Indigo eclipse and does not work
Next Topic:Testing webstart project
Goto Forum:
  


Current Time: Thu Apr 25 16:01:34 GMT 2024

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

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

Back to the top