Date: Mon, 9 Sep 1996 10:36:03 +0200 (IST) From: Eli Zaretskii To: "Mr A. Walker" Cc: djgpp AT delorie DOT com Subject: Re: C++ bug In-Reply-To: <51013q$sp5@aurora.cc.monash.edu.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 9 Sep 1996, Mr A. Walker wrote: > Findfirst() and findnext() seem to get the address of the file > name wrong by 2 chars when using C++. Using C it works OK. Seems > like a structure size bug to me. This is a known bug in GCC 2.7.2 C++ compiler. Use #pragma pack() to work around it. The DJGPP FAQ v2.01 has details in section 22.10.