Re: writing a php-gtk extension
| From: | xxoes | Date: | Sun, 29 Oct 2006 14:29:37 +0000 |
| Subject: | Re: writing a php-gtk extension | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3511@lists.php.net to get a copy of this message | ||
i have add "gdkdrawable_ce" to libglade.override, and there is the same problem!
i can not use *_ce in an extern module.
mfg xxoes
Steph Fox schrieb:
but i have no overrides file.Right. And you need to make one. It will also generate those export declarations for you by the way...! ext/mozembed's smaller, take a look at that one if libglade's too much. Notice the layout and structure. You need to have a defs file, an overrides file, a php_*.h file and a php_*.c file. These need to be put together in a very specific way to allow the generator to do its job. - Steph (sleeping now)Steph Fox schrieb:Ah, no, it should be in your extension's overrides file, not the header (even if it's the _only_ thing in the overrides file). Take a look at libglade.__________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comcode example: #include "php_gtk.h" #include "php_gtk_api.h" #if HAVE_PHP_GTK #include "gen_gdk.h" PHP_GTK_EXPORT_CE(gtkcl_ce); PHP_GTK_EXPORT_CE(gtkclimageset_ce); static PHP_METHOD(GtkCL, __construct) { zval *drawable; if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "N", &drawable, gdkdrawable_ce)) {PHPG_THROW_CONSTRUCT_EXCEPTION(GtkCL);} } it is a extension not a gen file from gtk+! i think its a linker problem/ or function call can give me the gdkdrawable_ce! i use win32 with vc7. sorry for my english, is not very well. mfg xxoes Steph Fox schrieb:__________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comI have try it, it dosn't work!Where are you including it?Steph Fox schrieb:__________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comthat not a include problem! thats a link problem.Yes, and if you don't include the file the link doesn't happen! Anant is correct. - Stephor a function can give me gdkdrawable_ce.mfg xxoes -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpbut how can i get the gdkdrawable_ce? compiler say's unresolved symbol __imp__gdkdrawable_ce. i can only use gobject_ce not other *_ce.Try including php_gtk_api.h - Anant