in reply to How convert header file to XS by h2xs?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How convert header file to XS by h2xs?
by almut (Canon) on Mar 19, 2010 at 10:32 UTC | |
|
Re^2: How convert header file to XS by h2xs?
by Anonymous Monk on Mar 19, 2010 at 12:33 UTC | |
by almut (Canon) on Mar 19, 2010 at 13:19 UTC | |
by xiaoyafeng (Deacon) on Mar 20, 2010 at 01:53 UTC | |
by syphilis (Archbishop) on Mar 20, 2010 at 10:17 UTC | |
by xiaoyafeng (Deacon) on Mar 20, 2010 at 14:37 UTC | |
| |
by xiaoyafeng (Deacon) on Mar 20, 2010 at 14:42 UTC |