0xAX
0xAX

Reputation: 21837

G_DEFINE_TYPE error

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

Answers (1)

user319799
user319799

Reputation:

In your first line you have _PicFileFileClass, while later it becomes _PicFileClass.

Upvotes: 1

Related Questions