Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3F718EF5.1000600@cs.york.ac.uk>
Date: Wed, 24 Sep 2003 13:32:53 +0100
From: chris <caj@cs.york.ac.uk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: EMOTO Masahiko <emo@nifs.ac.jp>
CC: cygwin@cygwin.com
Subject: Re: g++-2 and fstream problem
References: <874qz2mm59.wl%emo@nifs.ac.jp>
In-Reply-To: <874qz2mm59.wl%emo@nifs.ac.jp>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Scanner: exiscan *1A28pA-0007W4-AF*TbIyScW.jIs*

EMOTO Masahiko wrote:

>Hi,
>
>I have a problem with compling the C++ codes.
>The source code was compiled successfuly, but
>the program causes Segmentation fault.
>
>Please show me how to solve the problem.
>
>By the way, this program can run normally if
>it is compiled by g++ (3.2).
>
>                                     -- EMOTO
>
<program snipped>

First of all, I assume you realise that cygwin includes g++3.2? You seem
to have the package "gcc-2" installed, but not "gcc", which installs a
more recent version. As to why the program causes a segmentation fault,
I can back you up that it is, but don't know enough about g++ internals
to know why I'm afraid.



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

