h2xs -x

Paul Johnson paul at pjcj.net
Wed Nov 7 09:30:17 GMT 2012

On Mon, Nov 05, 2012 at 01:35:39PM -0800, Yitzchak Scott-Thoennes wrote:
> On Ubuntu 12.04, I was able to follow exactly the example here:
> http://perldoc.perl.org/perlxstut.html#EXAMPLE-4
> except for adding -x to the h2xs invocation and not adding the foo stub to
> the .xs file manually, and all worked just fine.

I think the problem occurs when you #include <stdio.h>

> I'm a little confused that you say modern linux/gcc but appear to have perl
> 5.8.8.

I think it's relative.  As far as I can tell this problem has existed
for many years.

Paul Johnson - paul at pjcj.net

More information about the london.pm mailing list