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: <431DD4DC.6020500@familiehaase.de> Date: Tue, 06 Sep 2005 19:41:48 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 To: Andreas CC: cygwin AT cygwin DOT com Subject: Re: BUG report: destructor exception vector; DLL 1.5.18 References: <431775C6 DOT 7040609 AT sdl DOT com> In-Reply-To: <431775C6.7040609@sdl.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Andreas wrote: > Hello, > > I found a bug in the Cygwin environment that blocks me. I condensed the > problem into one C++ file: all.cc > I compiles OK, but crashes, when executed. > > I compiled the same file on a LINUX system, it runs there without a problem. > > To me it seems that the deallocation in the destructor fails, when the > object has a vector element. > > Please do: > g++ -Wall -g -o all.exe all.cc > all.exe > > and see if you can reproduce. > > My output is: $ g++ -Wall -g -o all.C.exe all.C all.C: In member function `std::string My::UT_Args::getOptArg(int)': all.C:191: error: missing terminating " character all.C:192: error: missing terminating " character all.C:193: error: `arguments' undeclared (first use this function) all.C:193: error: (Each undeclared identifier is reported only once for each function it appears in.) all.C:193: error: expected `;' before "exit" all.C: In function `int main(int, char**)': all.C:270: error: missing terminating " character all.C:271: error: `Exception' undeclared (first use this function) all.C:271: error: expected `;' before '!' token all.C:271: error: missing terminating " character Sorry, cannot compile this... gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) Gerrit -- 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/