www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/13/13:55:05

Date: Wed, 13 Mar 1996 20:44:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Davide Rossi <rossi AT cs DOT unibo DOT it>
Cc: djgpp AT delorie DOT com
Subject: Re: findfirst/next is broken
In-Reply-To: <Pine.SUN.3.91.960313191925.11421C-100000@despina>
Message-Id: <Pine.SUN.3.91.960313204219.10812I-100000@is>
Mime-Version: 1.0

On Wed, 13 Mar 1996, Davide Rossi wrote:

> findfirst/next won't work with C++ (simply try with the ff.c test file,
> renaming it ff.cc).
> Is it's really a bug, please fix it soon ;)

The problem is in the C++ compiler that doesn't pack structs, not in 
findfirst/findnext.  Until this bug is corrected in a future version of 
GCC, you can use #pragma pack to work around it.  Or code your functions 
that use finfirst/findnext in C (or call opendir/readdir).

- Raw text -


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