delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/13/02:46:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Mon, 13 Jun 2011 02:46:17 -0400
Message-ID: <BANLkTimb2p-n7gDbu1Ru_PPhBdBPgc96yg@mail.gmail.com>
Subject: G++ 4.3.4 (with Cygwin 1.7) vs.G++ 4.5.2 (with MinGW) ???
From: Jan Chludzinski <jan DOT chludzinski AT gmail DOT com>
To: cygwin-digest AT cygwin DOT com, cygwin AT cygwin DOT com
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

Just finished compiling some numerical code (developed using the
Borland C++ compiler) using G++ 4.3.4 (that came with Cygwin 1.7).
The answers are different from what I get using the Borland compiler
(circa 2002).  I have known correct answers from some NASA code and
compare against those.

I've transitioned of late to Code::Blocks using the latest MinGW.
MinGW comes with G++ 4.5.2.  I compiled using this compiler and it
once again it works (I get the same answers as the NASA code).

Are there known problems with G++ 4.3.4?

BTW, the original code was infinite looping until I replaced the old style:

for (i=0; i<WHATEVER; i++) ..

with i declared within the routine (i.e., function) with:

for (int i=0; i<WHATEVER; i++) ...

---John

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