Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: modi.xraylith.wisc.edu: khan owned process doing -bs Date: Fri, 16 Apr 1999 13:03:43 -0500 (CDT) From: Mumit Khan To: Isselmou Ould-Dellahy cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: libmsvcrt.a and fflush (help!) In-Reply-To: <19990416123757.B9630@eastern.ccrl.mot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 16 Apr 1999, Isselmou Ould-Dellahy wrote: > Hi, > Can anybody, please, tell me why the program below craches when linked with libmsvcrt.a ? > > ============== CUT flush.c here =========== > #include > int main() > { > fflush(stdout); > return 0; > } > ============== CUT flush.c here =========== It crashes because you're trying to mix two incompatible runtimes together -- Cygwin and MSVCRT. Short answer: don't. Long answer: use mingw32 GCC with MSVCRT add on (or use -mno-cygwin, but you'll need to do some specs editing and also need to download my msvcrt add on package). > You could ask why am I linking with libmsvcrt.a; I have some missed symbols in a program > using IBM DX 3d visualiser (see the symbols below). And even if 'nm' could NOT find such symbols > in libmsvcrt.a the linker stop complying when I link with such a library. Is the library > stripped from its symbols ? If yes, why ? and how the linker could find them in it ? > You'll have to use a version of GCC that uses MSVCRT instead of Cygwin. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com