www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/21/12:21:30

Xref: news2.mv.net comp.os.msdos.djgpp:2908
From: gerbty AT indigo DOT ie (gerbty)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: dir.h problem
Date: 19 Apr 1996 20:40:58 GMT
Organization: Indigo Navigator User
Lines: 17
Message-ID: <4l8toq$ar2@niamh.indigo.ie>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960414095731 DOT 1640Z-100000 AT is>
NNTP-Posting-Host: dublin-ts3-84.indigo.ie
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Pine DOT SUN DOT 3 DOT 91 DOT 960414095731 DOT 1640Z-100000 AT is>, eliz AT is DOT elta DOT co DOT il 
says...

>Are you calling `findfirst' from a C++ program?  There is a known bug in 
>the C++ compiler that comes with GCC 2.7.2: it doesn't pack structures, 
>and struct ffblk is defined with __attribute__((packed)).
>
>To work around, either call `findfirst' from a C function, or surround 
>the definition of struct ffblk (on <dir.h>) with #pragma pack(1) ... 
>#pragma pack() lines.


Thats damn useful! Is there a list of #pragmas supported in the docs? If
not where can I get one?

Ger.

- Raw text -


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