X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <11606035 DOT post AT talk DOT nabble DOT com> Subject: RE: gcc error in Cygwin Date: Sun, 15 Jul 2007 22:36:56 +0100 Message-ID: <00db01c7c728$44cd8f50$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <11606035.post@talk.nabble.com> 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 On 15 July 2007 22:08, ppanta wrote: > I'm using the makefile that came with the code I'm working on and I cant > seem to get it working > in the Cygwin system even though it works perfectly fine in SUN. That's because it was written for Sun's C compiler and not gcc, and Sun uses Sun's C compiler and Cygwin uses gcc. > The errors I received state something like > > cc: Unrecognized option '-Xc' > cc: language 04 not recognized > linker input file unused because linking not done > CFLAGS = -xO4 -dalign -fsimple -fsingle -v -Xc Yep, gcc understands different command-line options from Sun's compiler. This isn't a Sun mailing list, so there's no guarantee anyone round here will know what those are supposed to do. > Note that I dont know most of what the options do. So if you can point me to > a good reference I'd be greatly appreciate. Yep, there's a good reference, it's called 'TFM'. Read the docs for the Sun compiler, see what those options do, read the docs for gcc, see how to achieve equivalent effect using options for gcc, edit the makefile to replace the one by the other. Docs for gcc can be called up on cygwin using "info gcc". I don't know what documentation system your Sun uses but "man cc" is almost bound to work. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/