delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/18/17:17:07

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: Re: freopen bug?
18 Feb 1998 17:17:07 -0800 :
Message-ID: <199802190037.QAA09366.cygnus.cygwin32.developers@skaro.cygnus.com>
References: <EoK9xI DOT Foz AT bbc DOT com>
To: cygwin32-developers AT cygnus DOT com

Christopher Faylor wrote:
> 
> Mumit Khan has indicated that he is having problems getting collect2 to
> work with EGCS due to an apparent bug in newlib's freopen.
> 
> The problem is that freopen is apparently not preserving the fd of the
> stream that is operating on.

I have committed this patch since it does fix the problem demonstrated
in your test program.  However, I still have collect2 problems.

//cpp.1
#include <list.h>

list<int> my_list01;

---------------------------

//cpp.2
#include <list.h>

int main()
{
list<int> my_list02;
return 0;
}

------------------------------

If I compile these files using b19:
	
	g++ -c -frepo -fno-implicit-templates 1.cpp 2.cpp
	g++ -frepo 1.o 2.o

the compile fails.  This happens in the same way regardless of the
behavior of freopen.

Also I just noticed that my g++ et al aren't being installed correctly
because they aren't getting a .exe suffix appended during build time.
I'll have to fix the makefiles...

-- 
Geoffrey Noer
noer AT cygnus DOT com

- Raw text -


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