Unable to load dynamic library

From: Date: Tue, 20 Dec 2005 17:38:01 +0000
Subject: Unable to load dynamic library
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6452@lists.php.net to get a copy of this message
When I tried to run the following script: ---------------------------------------------------------------- Listing 1 <?php if(!class_exists('gtk')) { if(strtoupper(substr(PHP_OS, 0, 3)) =='WIN') dl('php_gtk.dl1'); else dl('php_gtk.so'); } function shutdown() { print("exiting ....\n"); gtk::main_quit(); } function you_clicked($button) { $window = &new GtkWindow(); $window->set_title("Called window"); $label = &new Gtklabel("hello PHP-GTK"); $window -> add($label); $window->connect("destroy","shutdown"); $window->show_all(); return false; } $window = &new GtkWindow(); $window->set_title("Primary window"); $window->connect("destroy","shutdown"); $window->set_border_width(10); $button=&new GtkButton("Click for Hello"); $button->connect("clicked", "you clicked"); $window->add($button); $window->show_all(); gtk::main(); ?> ------------------------------------------------------------------------------ using the command php hello.php I got the following error message: ------------------------------------------------------------------------------- PHP Warning: dl(): Unable to load dynamic library '/usr/lib/php4/php_gtk.so' - /usr/lib/php4/php_gtk.so: undefined symbol: gtk_shpaned_new in /home/ckshayin/hello.php on line 8 PHP Fatal error: Cannot instantiate non-existent class: gtkwindow in /home/ckshayin/hello.php on line 28 ------------------------------------------------------------------------------- When I checked /usr/lib/php4, php_gtk.so file actually exists. Why is it not being loaded? Regards Shayin

« previous php.gtk.general (#6452) next »