Article View: comp.os.os2.programmer
Article #1922Re: GCC 2.1 or GCC 2.2.2?
From: John J. Allen
Date: Wed, 07 Oct 1992 10:18
Date: Wed, 07 Oct 1992 10:18
15 lines
1148 bytes
1148 bytes
ljensen@netcom.com (Colin Jensen) writes: : In article <1992Oct5.123837.28122@wsl.ie> jja@wsl.ie (John J. Allen) writes: : >Well 2.1 packs struct's automatically and 2.2.2 does not. I have not found : >a way to do this. This is a real pain if you use any system calls. : : [Warning: The following applies to gcc/2. I know nothing about EMXGCC] : : The version of gcc 2.2.2 that I am using *does* support packing structs : by using a #pragma option. ``#pragma pack(n)'' where n is the desired : alignment that you want for structs will cause all structs declared Well I've just checked and the pragmas are there but they are wrong. There is a pack(4) prior to the FILEFINDBUF2 & FILEFINDBUF3 and it should be pack(2). This caused me about two hours wasted time trying to find this bug.
Technical Details
Message-ID:
<1992Oct7.101842.10487@wsl.ie>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!ieunet!wsl!jjaReferences:
<1992Oct6.152907.7326@netcom.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ieunet!wsl!jja From: jja@wsl.ie (John J. Allen) Subject: Re: GCC 2.1 or GCC 2.2.2? Message-ID: <1992Oct7.101842.10487@wsl.ie> Organization: Project Papyrus, AIRAID, Dublin, Ireland References: <1992Oct6.152907.7326@netcom.com> Date: Wed, 7 Oct 1992 10:18:42 GMT Lines: 15