accessing struct: derefrencing pointer to incomplete type

后端 未结 3 953
盖世英雄少女心
盖世英雄少女心 2021-01-27 08:58

When I\'m trying to use and access the pointers to my structs i keep getting the annoying message of \"dereferencing pointer to incomplete type\" ....

For e

3条回答
  •  长情又很酷
    2021-01-27 09:31

    The problem is that the C file doesn't have access to the implementation of that strucure.

    Try to move the definition of the structure in the header file.

提交回复
热议问题