Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ under Windows XP
C++ under Windows XP [message #157371] Sun, 06 November 2005 19:23 Go to next message
Eclipse UserFriend
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: C++ under Windows XP [message #157384 is a reply to message #157371] Sun, 06 November 2005 19:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gentoo.aloetscher.ch

Hi Zybi,

You can for example use MinGW or CygWin with Eclipse CDT. Here are some
tutorials:

http://eclipsewiki.editme.com/UsingCDTWithCygwin
http://eclipsewiki.editme.com/InstallingCDT

Regards,
Adrian



Zybi wrote:
> 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: C++ under Windows XP [message #157392 is a reply to message #157384] Sun, 06 November 2005 20:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nie.podam.pl

Thanks a lot ;)

Zybi

Uzytkownik "Adrian Loetscher" <gentoo@aloetscher.ch> napisal w
wiadomosci news:dklmfs$ogb$1@news.eclipse.org...
> Hi Zybi,
>
> You can for example use MinGW or CygWin with Eclipse CDT. Here are
> some tutorials:
>
> http://eclipsewiki.editme.com/UsingCDTWithCygwin
> http://eclipsewiki.editme.com/InstallingCDT
>
> Regards,
> Adrian
>
>
>
> Zybi wrote:
>> 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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Charles Wilson is currently offline Charles WilsonFriend
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.
Re: Eclipse cannot work with the Cygwin and MinGW in a same time. [message #159491 is a reply to message #159357] Wed, 30 November 2005 17:54 Go to previous message
Eclipse UserFriend
Originally posted by: faq.lanl.gov

Oh, and if anyone wants to set up Eclipse/CDT with MinGW/msys/gdb the best
instructions that I have encountered can be found here:

http://met.dnsalias.net:1111/teaching/cdt/
on Max Berger's website.

With these instructions I was able to set up the eclipse ide for
programming c++ in windows XP on my home machine. However it did not have
cygwin on it, so there was no funny business with the system path.
Previous Topic:Preprocessor inclusion not found
Next Topic:Using bison?
Goto Forum:
  


Current Time: Sun Jun 30 12:47:14 GMT 2024

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

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

Back to the top