delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/15/12:44:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B9E7203.1010407@alcatel-lucent.com>
Date: Mon, 15 Mar 2010 18:44:35 +0100
From: Danilo Turina <danilo DOT turina AT alcatel-lucent DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin1.7 and Eclipse CDT?
References: <4B9E6D0C DOT 5060005 AT prager DOT ws>
In-Reply-To: <4B9E6D0C.5060005@prager.ws>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 15/03/2010 18.23, Bernd Prager wrote:
> Has anybody gotten Eclipse C++ CDT to run with Cygwin 1.7.?

Yes, it works for me.
I have the latest version of Eclipse Galileo (3.5.2?) and I've Cygwin 
1.7 up to date.

Notice, anyway, that I don't heavily use it (e.g. I compile only one 
file at time choosing "Build selected item" on project explorer).

I hadn't to do anything strange to make Eclipse recognize Cygwin 1.7 
(anyway notice that I previously had Cygwin 1.5).

It's worth noticing that with the default Eclipse configuration I wasn't 
able to compile using gcc/g++.

This was due to the fact that in Cygwin 1.7 gcc, g++, etc. are symbolic 
links (alternatives?) that are marked as executables. This causes 
Eclipse to believe they are Win32 executables and make it to try to 
execute them (Eclipse doesn't understand Cygwin's symlinks).

To fix this (but maybe this has already been discussed in this list), in 
Eclipse preferences just change the references to gcc, g++ putting 
instead the names of the real executables (g++-3, gcc-3, etc.)

Ciao,
	Danilo

> My Eclipse does not recognize Cygwin being installed and I cannot use
> the Cygwin gcc tool chain.
> I am certain I have all required packages installed:
>
> $ cat /etc/setup/installed.db | grep -P
> '^gcc\s+|^gcc-core\s+|^gcc-g\+\+\s+|^gcc-mingw-core\s+|^gcc-mingw-g\+\+\s+|^binutils\s+|^make\s+'
>
> binutils binutils-2.19.51-1.tar.bz2 0
> gcc-core gcc-core-3.4.4-999.tar.bz2 0
> gcc-g++ gcc-g++-3.4.4-999.tar.bz2 0
> gcc-mingw-core gcc-mingw-core-20050522-1.tar.bz2 0
> gcc-mingw-g++ gcc-mingw-g++-20050522-1.tar.bz2 0
> make make-3.81-2.tar.bz2 0
>
> I am sorry, if that would be more an Eclipse question, but I hope I find
> some targeted experiences in this list.
>
> Thanks for any help,
> -- Bernd
>
>
>
> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
>

8 anni 11 mesi 6 giorni 9 ore 1 minuto 40 secondi

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019