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 |
Stephen Bloch 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 #152786 is a reply to message #152772] |
Wed, 31 August 2005 19:49 |
Patrick Turley 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 #152851 is a reply to message #152772] |
Thu, 01 September 2005 06:42 |
Klaus Falser 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 |
Patrick Turley 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.
|
|
|
Goto Forum:
Current Time: Sat Nov 09 05:13:14 GMT 2024
Powered by FUDForum. Page generated in 0.03069 seconds
|