It runs fine for me (based on the test.h and test.c that you provided). If it doesn't work for you, then I suggest that the actual 'test.h' you're using is different to the one you provided in your original post. If, however, it does run fine for you, then try running:gcc -c -I. -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE - +DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPER +L_MSVCRT_READFIX -s -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0 +.01\" "-IC:\strawberry\perl\lib\CORE" test.c
That's the same as the first command I provided - except that 'test.c' has been replaced by 'Mytest.c'. That's also now the same command that failed for you in your original post - so it should fail again this time in exactly the same way. Does it ?gcc -c -I. -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE - +DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPER +L_MSVCRT_READFIX -s -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0 +.01\" "-IC:\strawberry\perl\lib\CORE" Mytest.c
In reply to Re: How convert header file to XS by h2xs?
by syphilis
in thread How convert header file to XS by h2xs?
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |