Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Sat, 29 Jan 2000 13:42:15 -0600 (CST) From: Mumit Khan To: henrik cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: std::string and crtdll problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 28 Jan 2000, henrik wrote: > Hi! > > Could anybody please tell me why the following program crashes with a sad > > [main] C:\prj\silly\a.exe 1098 (0) handle_exceptions: Exception: STATUS_STACK_OVERFLOW > [main] a 1098 (0) handle_exceptions: Dumping stack trace to a.exe.core > > when compiled with 'gcc silly1.cc -lstdc++ -lcrtdll' but not when compiled with > 'gcc silly1.cc -lstdc++', OR when the last two lines of readline() are > removed? Why in the world are you linking with -lcrtdll? That's a Mingw library and incompatible with Cygwin gcc unless you're using -mno-cygwin. See my mno-cygwin howto at: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com