This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin 1.7: how do I use gcc-4 and mingw (to replace -mno_cygwin)?


On 6/1/2010 5:45 PM, Jim Reisert AD1C wrote:
Since upgrading to Cygwin 1.7 eons ago, I lost the ability to compile
-mno_cygwin using gcc4.  I did find that I can still compile using
gcc3.

What's the simplest migration path from "gcc -mno-cygwin" (gcc3) to
the equivalent in gcc4?  I've seen this text:

   "For gcc-4, there'll be a separate MinGW cross compiler package,
which unfortunately isn't quite ready yet."

How would I use such a package in my Makefile, assuming it's ready for
Cygwin 1.7 now?

You'd invoke the cross-compiler directly instead of 'gcc-3 -mno-cygwin'. Or better, set CC before (or as part of) invoking 'make' so you don't have to put anything specific into your makefile.

If it's NOT ready, I can continue to use gcc3 until I run into
something that's only supported in gcc4.  Considering the code I
write, it may never come to this.

It's not ready yet.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?

-- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]