www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/08/02:14:35

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
Message-Id: <199905080613.BAA25012@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: Paul Thiessen <paul AT grserv DOT med DOT jhmi DOT edu>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: problem w/ mingw32/egcs/msvcrt and file reads (fwd)
In-reply-to: Your message of "Fri, 07 May 1999 20:54:24 EDT."
<Pine DOT SGI DOT 4 DOT 10 DOT 9905072053500 DOT 67490-100000 AT turandot DOT med DOT jhmi DOT edu>
Date: Sat, 08 May 1999 01:13:55 -0500
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Paul Thiessen <paul AT grserv DOT med DOT jhmi DOT edu> writes:
> Arrrrgh! <expletives deleted> It was just me being dumb - forgot that
> "string" is in std namespace, so the linker I think was getting confused
> somehow - since GNU's std:: hack prevents the compiler from warning me
> that "string" is undefined, it compiled anyway, and died. When I do the
> (correct) "std::string" or include a "using namespace std", everything is
> ok.
>   Sorry to bug you all with useless messages... although of course, if GNU
> had the std libraries implemented correctly, it wouldn't have been a
> problem, or at least, the compiler would have told me the problem right
> away... Oh well, I'm sure they're working on it.

And you're not the first one to have run into this problem! Good news
is that the standard library issue is being dealt with by the libstdc++
project and we shall have a compliant library sometime in the (hopefully
near) future.

btw, I consider this current behaviour as a bug, but of course, the
std:: hack is also necessary for portable code. EGCS-1.2 will have
much better diagnostics for cases like this.

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