Reputation: 21837
In my gtk+ application i have following code:
G_DEFINE_TYPE(PicFile, pic_file, G_TYPE_OBJECT)
When i try to compile it i see error: error:invalid application of sizeof to incomplete type 'PicFileClass'
Where PicFileClass -
typedef struct _PicFileFileClass PicFileClass;
struct _PicFileClass {
GObjectClass parent;
};
What's wrong?
Thank you.
Upvotes: 0
Views: 759
Reputation:
In your first line you have _PicFileFileClass
, while later it becomes _PicFileClass
.
Upvotes: 1