Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要动态声明 AvahiClient*。因此,为此我使用了 AvahiClient *c = (AvahiClient*)malloc(sizeof(AvahiClient))这种方法和所有其他方法来获取 AvahiClient 的大小,但会给出表单错误incomplete type ‘AvahiClient’ {aka ‘struct AvahiClient’}。那么有没有办法获得 AvahiClient 的大小?
AvahiClient *c = (AvahiClient*)malloc(sizeof(AvahiClient))
incomplete type ‘AvahiClient’ {aka ‘struct AvahiClient’}