Re: error: dereferencing pointer to incomplete type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 16 Feb 2006 20:06:49 +0530
Sun Agham <agham.sunil@xxxxxxxxx> wrote:

> Hi,
> I am developing module for a file system. For this I wrote following
> code. I am here traversing the link list of *vfsmount *objects. While
> compliling I am getting this error

Hi,

i think you could find an answer here (1st hit in gg ;-),
http://www.research.att.com/lists/uwin-users/1999/10/msg00098.html.

In short if you have something like

   extern struct undef *foo;
   ...
   int value = foo->value;

and GCC doesn't have the definition of struct undef (just a
declaration), it is unable to handle '->value'.

Cheers,
Vincent

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux