Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Can't compile XS, getting "strcmp" error

by MrNobo1024 (Hermit)
on May 12, 2001 at 04:39 UTC ( #79881=note: print w/ replies, xml ) Need Help??


in reply to Re: Can't compile XS, getting "strcmp" error
in thread Can't compile XS, getting "strcmp" error

Actually xstest.c dosen't call strcmp at all. The relevant code is

xstest.xs:

#include "EXTERN.h" #include "perl.h" #include "XSUB.h" MODULE = xstest PACKAGE = xstest void hello() CODE: printf("Hello, world!\n");
xstest.c:
/* * This file was generated automatically by xsubpp version 1.9508 from + the * contents of xstest.xs. Do not edit this file, edit xstest.xs instea +d. * * ANY CHANGES MADE HERE WILL BE LOST! * */ #line 1 "xstest.xs" #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #line 16 "xstest.c" XS(XS_xstest_hello) { dXSARGS; if (items != 0) Perl_croak(aTHX_ "Usage: xstest::hello()"); { #line 11 "xstest.xs" printf("Hello, world!\n"); #line 25 "xstest.c" } XSRETURN_EMPTY; } #ifdef __cplusplus extern "C" #endif XS(boot_xstest) { dXSARGS; char* file = __FILE__; XS_VERSION_BOOTCHECK ; newXS("xstest::hello", XS_xstest_hello, file); XSRETURN_YES; }


Comment on Re: Re: Can't compile XS, getting "strcmp" error
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://79881]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-10-21 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (97 votes), past polls