delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/18/15:06:09

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: WINDRES alternative for egcs Mingw32 on Win95
18 Jul 1998 15:06:09 -0700 :
Message-ID: <Pine.SUN.3.93.980717095438.27332A-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <DXJwVJAfkfr1EwFg AT dsteele DOT demon DOT co DOT uk>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com
Cc: Douglas Steele <ds AT dsteele DOT demon DOT co DOT uk>

On Thu, 16 Jul 1998, Douglas Steele wrote:

> Hi,
> 
> Can anyone suggest an alternative for windres on ecgs Mingw32.
> On some Win95 setups it fails because when it does a popen it dumps the
> res file to the screen instead of passing it to gcc.  Problem, according
> to Mumit, is due not to windres, but to various Win95 DLL's which are
> used by Mingw32.

Here's the problem Douglas is referring to:

  Windres calls the CPP (C pre-processor) using popen and simply reads the
  standard output of cpp for the pre-processed resource description. Now,
  we run into problems on the following systems:
  
  1. CRTDLL (certain versions)on Win95: popen messes up the standard
     output/error of the process it's running and the output goes to the
     screen instead.
  
  2. MSVCRT or MSVCR40 on WinNT (possibly on W95, but not tested yet): You
     get some bizarre error from popen that says 'disk is full' or some 
     such rubbish. This *does* work with MSVCRT20.DLL however. Now, the
     same test code works with MSVC++ 4.0, so there is some "magic" that 
     mingw32 startup is missing that MSVC++ 4.0 is doing to achieve this.
  
The popen problem has been discussed in this mailing list (search the
archives) with no apparent resolution. I was planning to write a simple
and minimal replacement for popen that would get around this, but no time
yet. Do I hear someone just volunteer?

Douglas, why not just use the cygwin32 version? All you need is windres
and cygwinb19.dll, right? (of course I haven't personally tested this,
so don't know for sure).

Regards,
Mumit

ps: Douglas, apologies for not responding to your earlier email, but life
is rather hectic these days.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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