Page 1 of 1

Code error

Posted: Thu Dec 25, 2003 12:57 pm
by beyondsociety
I wrote some code to dump the debug information of my computer when an exception is thrown and when I compile it, GCC give me this error: request for member ' ' in something not a structure or union.

I searched google for an answer but I could only find bits and pieces. So I turned to the chapter on structurs in my C programming book. Its was some help, but I still dont know whats wrong.

Has anybody ever encountered this error? What does it mean and how do I fix it?

Re:Code error

Posted: Tue Dec 30, 2003 11:07 am
by Tim
Yes. It means you've tried to use . or -> on something that isn't a structure or a union.

Maybe you've got a pointer to a structure or union, and you're using . when you should be using ->.

Re:Code error

Posted: Tue Jan 13, 2004 5:28 pm
by beyondsociety
It means you've tried to use . or -> on something that isn't a structure or a union.

Maybe you've got a pointer to a structure or union, and you're using . when you should be using ->.
I had a member that was defined in my structure but I wasnt using it [pointing to it]and thus it was generating an error.

Thanks for the help tim.