delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/23/06:31:29

Date: Wed, 23 Dec 1998 13:31:17 +0200 (EET)
From: Toni Rasanen <torasane AT mail DOT student DOT oulu DOT fi>
X-Sender: torasane AT paju DOT oulu DOT fi
To: djgpp AT delorie DOT com
Subject: Structs in pointers and something of BINUTILS
In-Reply-To: <199812230908.XAA17597@v1.vision1.net>
Message-ID: <Pine.SGI.3.95.981223132631.9473A-100000@paju.oulu.fi>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Oh, C fundamentals...

I have a struct defined. It worked fine while I kept in in data;
struct structtype structs[100];
However, when I modified them to be pointers, compiler no longer
finds members of structure;
struct structtype *structs[100];
...
*structs[i].member = ...

What's the proper way to access that struct? I have tried everything
I can think of, but without any success...

Also, I tried to recompile binutils' OBJCOPY, but without success.
It seems that I need something else too to compile (or even configure)
it, in addition of normal djgpp binaries. WHAT do I need?

 ///           Toni Räsänen
///       torasane AT mail DOT student DOT oulu DOT fi
\\\  Physicians ask how. Filosofians ask why. Dragons don't care.

- Raw text -


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