Send Ad Free SMS in India

Silencing a GLib-GObject-WARNING

April 16, 2007 | In: Celunite, Technology

When gcc tells you something like this…

(process:28965): GLib-GObject-WARNING **: specified instance size for type `MyObject’ is smaller than the parent type’s `GObject’ instance size

& you know that you’ve covered all the possible bugs in your object code – think again! Check your structure definition! Remember – the GObject & GObjectClass members in the object & ObjectKlass have to defined as instance variables, not pointers!

I did this mistake today & was then searching for my error from past 2 hours! Lol :)

BTW, just found out, GOB2 is a nice tool to generate code for glib based objects. I’m soon gonna give it a try :)

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Reddit Post to StumbleUpon

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.



View Comments to Silencing a GLib-GObject-WARNING

Avatar

makuchaku

April 16th, 2007 at 5:47 pm

Considering that, my front page – http://www.makuchaku.in/yes.html will compile but spit out gazillions of warnings when run! I need to correct it… lol

Avatar

makuchaku

April 16th, 2007 at 5:50 pm

Fixed!

Avatar

Sayamindu

April 16th, 2007 at 11:42 pm

You might want to check out Vala as well.

Avatar

makuchaku

April 17th, 2007 at 12:19 pm

Thanks man!

Comment Form

blog comments powered by Disqus