From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28768 invoked by alias); 13 Jun 2011 06:46:34 -0000 Received: (qmail 28751 invoked by uid 22791); 13 Jun 2011 06:46:33 -0000 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 Received: from mail-wy0-f171.google.com (HELO mail-wy0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Jun 2011 06:46:19 +0000 Received: by wyb32 with SMTP id 32so3882799wyb.2 for ; Sun, 12 Jun 2011 23:46:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.37.220 with SMTP id y28mr4692099wbd.82.1307947577047; Sun, 12 Jun 2011 23:46:17 -0700 (PDT) Received: by 10.227.28.89 with HTTP; Sun, 12 Jun 2011 23:46:17 -0700 (PDT) Date: Mon, 13 Jun 2011 06:46:00 -0000 Message-ID: Subject: G++ 4.3.4 (with Cygwin 1.7) vs.G++ 4.5.2 (with MinGW) ??? From: Jan Chludzinski To: cygwin-digest@cygwin.com, cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-06/txt/msg00120.txt.bz2 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