www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/19/13:43:09

Date: Wed, 19 Jun 1996 20:20:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Joern Sierwald <Sierwald AT tu-harburg DOT d400 DOT de>
Cc: djgpp AT delorie DOT com
Subject: Re: findfirst bug?
In-Reply-To: <31C7E4E1.5ABB@tu-harburg.d400.de>
Message-Id: <Pine.SUN.3.91.960619201928.19221C-100000@is>
Mime-Version: 1.0

On Wed, 19 Jun 1996, Joern Sierwald wrote:

> The find_t struct in dos.h is supposed to be packed. It
> is full of (packed) attributes. For some strange reason, it isn't
> packed until I put an #pragma pack(1) in front of it.
> (#pragma pack() behind it).
> 
> The findfirst/findnext functions don't work until I modify
> the headers. 
> 
> Is this a known bug? I'm using V 2.00.

Yes, it's a known bug in the C++ compiler of GCC 2.7.2 (C compiler does 
pack structs as it should).

- Raw text -


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