Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Basic trouble running under Windows
Basic trouble running under Windows [message #152772] Wed, 31 August 2005 19:42 Go to next message
Stephen Bloch is currently offline Stephen BlochFriend
Messages: 4
Registered: July 2009
Junior Member
I've successfully used Eclipse for Java, C, C++, and Prolog programs on
my Macintosh, but unfortunately the classes I'm teaching are in
Windows-based labs, so I have to figure out how to get things to work on
Windows.

I've installed Eclipse 3.1, with CDT 3.0. It can't compile anything
(e.g. "hello world"), because it's looking for gcc, which doesn't come
standard on Windows. I tried using the Borland BCC compiler, but the
version of "make" shipped with BCC doesn't recognize some of the
command-line options that Eclipse apparently gives it; I don't know
whether the compiler itself is up to Eclipse's standards.

So on the advice of one of my students, I downloaded and installed MSYS
and MinGW, which includes a gcc and a GNU make. (Seems like a lot of
overhead just to do C/C++ compiles in Eclipse, but OK...) Now Eclipse
can apparently find a working make and gcc, but it complains "Error
launching 'cygpath' command". I have no idea what the 'cygpath' command
is, or why I would need it (I don't have cygwin installed; should I?)

Is there a place that I can get Windows binaries for just gcc/g++, GNU
make, and gdb, without downloading a whole bunch of other stuff?
Re: Basic trouble running under Windows [message #152778 is a reply to message #152772] Wed, 31 August 2005 19:49 Go to previous messageGo to next message
Stephen Bloch is currently offline Stephen BlochFriend
Messages: 4
Registered: July 2009
Junior Member
I should add that I HAVE been able to compile and run things, both with
the BCC compiler and with MinGW's gcc, from the command line; I just
can't get Eclipse to invoke either of them correctly.
Re: Basic trouble running under Windows [message #152786 is a reply to message #152772] Wed, 31 August 2005 19:49 Go to previous messageGo to next message
Patrick Turley is currently offline Patrick TurleyFriend
Messages: 43
Registered: July 2009
Member
sbloch wrote:
> I've successfully used Eclipse for Java, C, C++, and Prolog programs on
> my Macintosh, but unfortunately the classes I'm teaching are in
> Windows-based labs, so I have to figure out how to get things to work on
> Windows.
>
> I've installed Eclipse 3.1, with CDT 3.0. It can't compile anything
> (e.g. "hello world"), because it's looking for gcc, which doesn't come
> standard on Windows. I tried using the Borland BCC compiler, but the
> version of "make" shipped with BCC doesn't recognize some of the
> command-line options that Eclipse apparently gives it; I don't know
> whether the compiler itself is up to Eclipse's standards.
>
> So on the advice of one of my students, I downloaded and installed MSYS
> and MinGW, which includes a gcc and a GNU make. (Seems like a lot of
> overhead just to do C/C++ compiles in Eclipse, but OK...) Now Eclipse
> can apparently find a working make and gcc, but it complains "Error
> launching 'cygpath' command". I have no idea what the 'cygpath' command
> is, or why I would need it (I don't have cygwin installed; should I?)
>
> Is there a place that I can get Windows binaries for just gcc/g++, GNU
> make, and gdb, without downloading a whole bunch of other stuff?
>

No - you don't have to install cygwin. If I recall correctly, you can
safely ignore this message.

This issue has popped up in this newsgroup before. I recommend you
search the newsgroup archive. I'm sorry I can't offer you a definitive
answer - I simply don't recall the final resolution.
Re: Basic trouble running under Windows [message #152794 is a reply to message #152786] Wed, 31 August 2005 19:58 Go to previous messageGo to next message
Stephen Bloch is currently offline Stephen BlochFriend
Messages: 4
Registered: July 2009
Junior Member
I asked:

>> "Error launching 'cygpath' command". I have no idea what the
>> 'cygpath' command is, or why I would need it (I don't have cygwin
>> installed; should I?)

and Patrick Turley replied:

> No - you don't have to install cygwin. If I recall correctly, you can
> safely ignore this message.

I thought of that -- it is, after all, labelled as a "warning", not an
"error" -- but the "Build project" command isn't producing an
executable, so that's hard to ignore.

(Still trying to compile "hello world"....)
Re: Basic trouble running under Windows [message #152851 is a reply to message #152772] Thu, 01 September 2005 06:42 Go to previous messageGo to next message
Klaus Falser is currently offline Klaus FalserFriend
Messages: 22
Registered: July 2009
Junior Member
In article <df5181$24n$1@news.eclipse.org>, sbloch@adelphi.edu says...
> I've successfully used Eclipse for Java, C, C++, and Prolog programs on
> my Macintosh, but unfortunately the classes I'm teaching are in
> Windows-based labs, so I have to figure out how to get things to work on
> Windows.
>
> I've installed Eclipse 3.1, with CDT 3.0. It can't compile anything
> (e.g. "hello world"), because it's looking for gcc, which doesn't come
> standard on Windows. I tried using the Borland BCC compiler, but the
> version of "make" shipped with BCC doesn't recognize some of the
> command-line options that Eclipse apparently gives it; I don't know
> whether the compiler itself is up to Eclipse's standards.
>
> So on the advice of one of my students, I downloaded and installed MSYS
> and MinGW, which includes a gcc and a GNU make. (Seems like a lot of
> overhead just to do C/C++ compiles in Eclipse, but OK...) Now Eclipse
> can apparently find a working make and gcc, but it complains "Error
> launching 'cygpath' command". I have no idea what the 'cygpath' command
> is, or why I would need it (I don't have cygwin installed; should I?)
>
> Is there a place that I can get Windows binaries for just gcc/g++, GNU
> make, and gdb, without downloading a whole bunch of other stuff?
>
>
There are two flawors of C/C++ projects in CDT.
If you want to use the "Managed C/C++ Project" type then the CDT creates
the makefile for you and all compiler switches are for gnu gcc, and the
whole setup depends strongly on the cygwin environment. In this case you
have to install cygwin.
If you want to use the "Standard Make C/C++ Project" type, then you
have to supply the makefile and you can put in your makefile whatever
you want.
This way you can use the compiler and the compiler switches you like.
Another nice feature is that you can specify a custum environment for
your project. yYou can modify for instance your PATH variable
only for this specific project to include the directory where the
compiler will be found.
In this case you don't need the cygwin environment.

Hope this helps
Klaus
Re: Basic trouble running under Windows [message #152902 is a reply to message #152851] Thu, 01 September 2005 14:55 Go to previous message
Patrick Turley is currently offline Patrick TurleyFriend
Messages: 43
Registered: July 2009
Member
Klaus Falser wrote:
> In article <df5181$24n$1@news.eclipse.org>, sbloch@adelphi.edu says...
>
>>I've successfully used Eclipse for Java, C, C++, and Prolog programs on
>>my Macintosh, but unfortunately the classes I'm teaching are in
>>Windows-based labs, so I have to figure out how to get things to work on
>>Windows.
>>
>>I've installed Eclipse 3.1, with CDT 3.0. It can't compile anything
>>(e.g. "hello world"), because it's looking for gcc, which doesn't come
>>standard on Windows. I tried using the Borland BCC compiler, but the
>>version of "make" shipped with BCC doesn't recognize some of the
>>command-line options that Eclipse apparently gives it; I don't know
>>whether the compiler itself is up to Eclipse's standards.
>>
>>So on the advice of one of my students, I downloaded and installed MSYS
>>and MinGW, which includes a gcc and a GNU make. (Seems like a lot of
>>overhead just to do C/C++ compiles in Eclipse, but OK...) Now Eclipse
>>can apparently find a working make and gcc, but it complains "Error
>>launching 'cygpath' command". I have no idea what the 'cygpath' command
>>is, or why I would need it (I don't have cygwin installed; should I?)
>>
>>Is there a place that I can get Windows binaries for just gcc/g++, GNU
>>make, and gdb, without downloading a whole bunch of other stuff?
>>
>>
>
> There are two flawors of C/C++ projects in CDT.
> If you want to use the "Managed C/C++ Project" type then the CDT creates
> the makefile for you and all compiler switches are for gnu gcc, and the
> whole setup depends strongly on the cygwin environment. In this case you
> have to install cygwin.

I could be wrong - but I don't think you have to install cygwin. I
believe you must install a GNU compiler system of some sort, but I don't
think cygwin is specifically required. You could, for example, use MinGW
- or even just set it up by hand.
Previous Topic:problam with linking
Next Topic:CDT 3.0 SDK. Any documentation?
Goto Forum:
  


Current Time: Sun Sep 01 07:04:06 GMT 2024

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

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

Back to the top