Using

Scripting

Compile Errors

Fails to compile with an error in fe-gtk.c

In GTK 2.14, the GtkType typedef was deprecated in favor of GType. If you have the following error while in the build process:

In file included from fe-gtk.c:48:
xtext.h:273: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_xtext_get_type'

you are probably using GTK 2.14. To fix this, modify xtext.h and xtext.c, replacing GtkType with GType. The following line will make these changes for you from within the XChat directory:

sed -i 's/GtkType/GType/' src/fe-gtk/xtext.{c,h}

This problem has been fixed in CVS.

Error while building Perl

If you have the following error in your build process:

/usr/bin/ld: cannot find -lperl

you do not have all of the Perl developer files installed on your system. Install the Perl Developer package for your system. On debian based distributions, this can be done with:

apt-get install libperl-dev
Print - Recent Changes - Search
Page last modified on December 13, 2008, at 11:44 AM