X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <30467239 DOT post AT talk DOT nabble DOT com> Date: Wed, 22 Dec 2010 10:12:01 -0500 Message-ID: Subject: Re: mingw-targeted cross-compiler question From: NightStrike To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2010/12/22 Fr=E9d=E9ric Bron : >>>> I checked the Make file, it used this flag: >>>> gcc -mno-cygwin -g -Wl,--add-stdcall-alias -Wl,--export-all-symbols ... >>> >>> replace gcc by gcc-3 >>> gcc 4 is now the default on cygwin but the cross compiler is not >>> supported for that version. >>> Fr=E9d=E9ric >> >> What do you mean by not supported? =A0JonY maintains the cross compilers= .... > > I meant that i686-w64-mingw32-gcc exists but not i686-w32-mingw32-gcc. > I thought that w64 meant "built on win64" and mingw32 "run binary on win3= 2". > So it seems to me that with cygwin running on a 32 bit windows, it is > not possible to cross compile to win32. However with a 64 bit windows > you can produce win32 applications. > However, I just tried to use i686-w64-mingw32-g++ on my win32 machine > with a hello world program and it produces an binary that can be used > from windows on that win32 machine. > So my question to the list: what is the meaning of w64 in the name? Basically, "stuff from mingw-w64.sf.net" The middle piece of the triplet is the vendor tag. We at mingw-w64 are the vendors. We support win32 and win64, for both host and target. I admit it's confusing, but we didn't come up with a better name fast enough. -- 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