Jeff Pang wrote:
>
Thanks for all the suggestion.
But when I run 'perl -MCPAN -e shell' to install GD.pm,I got lots of errors and
can't make it at all:
GD.xs:615: error: `RETVAL' undeclared (first use in this function)
GD.xs:615: error: syntax error before "gdImageCreateFromPng"
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:627: error: `gdIOCtx' undeclared (first use in this function)
GD.xs:627: error: `ctx' undeclared (first use in this function)
GD.c:707: error: syntax error before "RETVAL"
GD.xs:639: error: `RETVAL' undeclared (first use in this function)
GD.xs:639: error: syntax error before "gdImageCreateFromPngCtx"
GD.c: In function `XS_GD__Image_newFromGdData':
GD.c:742: error: syntax error before "RETVAL"
How about this case?did you ever meet it?
These are C error messages. XS files are meant as input to xsubpp, not a C
compiler. I suggest you take a look at
perldoc perlmodinstall
to see the procedure for installing modules manually. You will eventually need
to have all of the requisite libraries in place on your system, but their
absence is not the cause of the problem you are seeing here.
HTH,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>