Mail Archives: djgpp/1998/12/23/15:33:41
Toni Rasanen wrote:
>
> 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...
The `.' operator binds more tightly than `*'. Thus, you would say
(*structs[i]).member
or better,
structs[i]->member
This would have been more properly posted to comp.lang.c. Also consider
getting a book on C.
> 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?
What problems did you encounter?
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -