xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:
I ran 4 steps as perldoc h2xs:test.h #define TESTVAL 3 extern int max(int, int); test.c #include "./test.h" int max(int a, int b) { return ((a>b)? a:b); }
Any thoughts? I believe monks' help will let me pass Dark Ages as quickly as possible. ;) TIAC:\Mytest>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Mytest C:\Mytest>dmake cp lib/Mytest.pm blib\lib\Mytest.pm AutoSplitting blib\lib\Mytest.pm (blib\lib\auto\Mytest) C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\strawberry\perl\lib\ExtUtils\typemap Mytest.xs > Mytest.xsc && C: +\strawberr y\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- Mytest.xsc Mytest.c Please specify prototyping behavior for Mytest.xs (see perlxs manual) gcc -c -I. -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE - +DPERL_IMPL ICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_RE +ADFIX -s - O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-IC:\strawberr +y\perl\lib \CORE" Mytest.c In file included from Mytest.xs:7: ./test.h:1: error: syntax error before "int" dmake: Error code 129, while making 'Mytest.o'
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
|
|---|