Mail Archives: djgpp/1997/04/24/05:00:17
Stefano Brozzi wrote:
>
> Ok, copy this program. Call it imOK.c, compile. it works correctly.
> Rename it imKO.cc, compile. Two heading chars are missing in filenames.
> Please explain. It's late in the night, am I missing something ?
*** Program code deleted from original message ***
It seems you're using gcc 2.7.2. It had problems with packed structures
so it changed alignment of some variables with c++ - the dos-structures
in dir.h for example.
Download and install gcc 2.7.2.1 and the problem will be solved.
Another possibility is adding lines like the following in dir.h (I don't
remember the exact syntax):
#ifdef __CPLUSPLUS__
#pragma pack(1)
#endif
** definition of structure **
#ifdef __CPLUSPLUS__
#pragma pack()
#endif
Hope this helps,
Roland
+---------------------------------------+---------------------------+
I Roland Exler I EMAIL: I
I Universitaet Linz I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I
I Institut fuer Elektrische Messtechnik I I
I Altenbergerstr. 69 I Phone: I
I A-4040 Linz, AUSTRIA I + 43 732 2468 9205 I
+---------------------------------------+---------------------------+
- Raw text -