|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-26 09:17 UTC] sniper@php.net
[2000-08-30 11:51 UTC] jmullan at doubt dot com
[2000-08-30 12:09 UTC] jmoore@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
I'm new to this, so maybe I've been doing something wrong. It seems to be compiling okay now (see the end of this text) gd.c: In function `php_if_imagecreatefromgif': gd.c:472: `gdImageCreateFromGif' undeclared (first use in this function) gd.c:472: (Each undeclared identifier is reported only once gd.c:472: for each function it appears in.) gd.c: In function `php_if_imagegif': gd.c:629: `gdImageGif' undeclared (first use in this function) make[3]: *** [gd.lo] Error 1 commenting out the #ifdef like this seemed to help: PHP_FUNCTION(imagecreatefromgif) { //#ifdef HAVE_GD_GIF // _php_image_create_from(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageCreateFromGif); //#else /* HAVE_GD_GIF */ php_error(E_WARNING, "ImageCreateFromGif: No GIF support in this PHP build"); RETURN_FALSE; //#endif /* HAVE_GD_GIF */ } PHP_FUNCTION(imagegif) { //#ifdef HAVE_GD_GIF // _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGif); //#else /* HAVE_GD_GIF */ php_error(E_WARNING, "ImageGif: No GIF support in this PHP build"); RETURN_FALSE; //#endif /* HAVE_GD_GIF */ }