C++ under Windows XP [message #157371] |
Sun, 06 November 2005 14: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
|
|
|
|
|
|
|
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 12:33   |
Eclipse User |
|
|
|
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.03294 seconds