Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <3F718EF5.1000600@cs.york.ac.uk> Date: Wed, 24 Sep 2003 13:32:53 +0100 From: chris 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 CC: cygwin AT cygwin DOT com Subject: Re: g++-2 and fstream problem References: <874qz2mm59.wl%emo AT nifs DOT ac DOT 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 > 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/