delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/16/13:05:40

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 <khan AT xraylith DOT wisc DOT edu>
To: Isselmou Ould-Dellahy <iod AT ccrl DOT mot DOT com>
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: <Pine.SUN.3.93.990416130100.16419C-100000@modi.xraylith.wisc.edu>
MIME-Version: 1.0

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 <stdio.h>
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019