I am having troubles upon runtime in codeblocks. It says “(HelloWorld.exe:3312): libglade-CRITICAL **: glade_xml_relative_file: assertion `filename != NULL’ failed”
I am using Glade, and GTK at the same time to build a UI for my project, but I've been working on it for days and I still couldn't figure out what's wrong? Thank you.
int main(int argc, char *argv[])
{
gtk_init(&argc, &argv);
/*import glade file*/
xml = glade_xml_new("hello.glade", NULL, NULL);
/* get a widget (useful if you want to change something) */
widget = glade_xml_get_widget(xml, "mainWindow");
/* connect signal handlers */
glade_xml_signal_autoconnect(xml);
/*show widget*/
gtk_widget_show (widget);
gtk_main();
return 0;
}
It builds fine, it just won't run when I try to run it.
filename
becomesNULL
, that is why assertion fails. – Don't You Worry Child/
if in linux or fromX:
if on windows – Don't You Worry Child