C++ under Windows XP [message #157371] |
Sun, 06 November 2005 19:23 |
Eclipse User |
|
|
|
Originally posted by: nie.podam.pl
Hi, I would like to use eclipse with some free compiler under Windows
XP, could you give me any advice (what freeware compiler is compatible
with eclipse)? I'm noob ;).
Regards
Zybi
|
|
|
|
|
Eclipse cannot work with the Cygwin and MinGW in a same time. [message #157399 is a reply to message #157392] |
Mon, 07 November 2005 04:08 |
Eclipse User |
|
|
|
Originally posted by: chianshin.gmail.com
I used to use MinGW, and it worked well with Eclipse.
But in this week, after I have installed cygwin, I Eclipse cannot work
well with both of them.
The complier reported many errors in the system .h files. I can compile
the program by using command probmpt directly. But I cannot compile it
again in Eclipse.
I found that Eclipse detected the cygwin, and add the cygwin/bin in the
front of the system enviroment.
But how can I force the Eclispse only MinGW, and ignore the cygwin on my
computer?
|
|
|
Re: Eclipse cannot work with the Cygwin and MinGW in a same time. [message #159357 is a reply to message #157399] |
Tue, 29 November 2005 22:22 |
Eclipse User |
|
|
|
Originally posted by: faq.lanl.gov
> I found that Eclipse detected the cygwin, and add the cygwin/bin in the
> front of the system enviroment.
Yeah, that is the most screwed up thing I have ever seen. I looked in my
path through the control panel there seems to be a lot of '%' and whatnot
in the beginning that I do not understand, however no C:\cygwin. When I
looked at the Path in Eclipse there was C:\cygwin there!
Does anyone know what's going on? Eclipse complains about a cygwin dll and
does not let me run a simple hello world project. However it will create a
binary exe, doing when in managed make mode.
|
|
|
Re: Eclipse cannot work with the Cygwin and MinGW in a same time. [message #159483 is a reply to message #159357] |
Wed, 30 November 2005 17:33 |
Charles Wilson Messages: 16 Registered: July 2009 |
Junior Member |
|
|
This is because, for both MinGW and Cygwin, the same package is used to
provide GNU-ish support on windows:
org.eclipse.cdt.managedbuilder.gnu.cygwin. This package "helpfully"
prepends cygwin's bin directory onto PATH, if cygwin is found on your
computer. This is unconditional, and applies EVEN when you're really
trying to use MinGW.
IMO, there should be an org.eclipse.cdt.managedbuilder.gnu.mingw (and
maybe even an org.eclipse.cdt.managedbuilder.gnu.msys; the difference
being that .mingw would assume mingw-make.exe and SHELL=cmd.exe, while
msys would assume make.exe and SHELL=C:\msys\1.0\bin\sh.exe). And then,
somehow, you'd select between them -- maybe each would provide different
project types, like
Executable (Cygwin on Windows)
Shared Library (Cygwin on Windows)
Static Library (Cygwin on Windows)
Executable (MinGW alone on Windows)
Shared Library (MinGW alone on Windows)
Static Library (MinGW alone on Windows)
Executable (MinGW with MSys on Windows)
Shared Library (MinGW with MSys on Windows)
Static Library (MinGW with MSys on Windows)
The short answer is to explicitly set PATH using the Project
Properties->C/C++ Build/Environment pane, overriding the system value of
PATH and ensuring that C:\MinGW\bin and C:\msys\1.0\bin precede (or
replace) cygwin.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03598 seconds