Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^9: Perl XS binding to a struct with an array of chars*

by GrandFather (Saint)
on Nov 25, 2022 at 04:02 UTC ( [id://11148370]=note: print w/replies, xml ) Need Help??


in reply to Re^8: Perl XS binding to a struct with an array of chars*
in thread Perl XS binding to a struct with an array of chars*

Hi Rob, I have had endless trouble installing "interesting" modules on my work machine. No Idea why, but I've found it impossible to install Tk against any version of Strawberry Perl I care to try and a multitude of other modules (which I don't remember) have given grief. I installed Win32::IPC and rerun the Inline::C install. It at least completes now, but fails most of its tests. So I installed it with force. Your sample code then at least starts running, but fails with:

"C:\STRAWB~2\perl\bin\perl.exe" -MExtUtils::Command -e mv -- noname_pl +_cf1b.xsc noname_pl_cf1b.c gcc -c -iquote"D:/Scratch~~/PerlScratch" -DWIN32 -D__USE_MINGW_ANSI_S +TDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_ +SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" "-IC:\STRAWB~2\perl\lib\CO +RE" noname_pl_cf1b.c cc1.exe: error: unrecognized command line option "-iquoteD:/Scratch~~/ +PerlScratch" gmake: *** [Makefile:333: noname_pl_cf1b.o] Error 1 A problem was encountered while attempting to compile and install your + Inline C code. The command that failed was: "gmake" with error code 2 ...

I'm not going to pursue this at work, but I may pick it up again at home.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^10: Perl XS binding to a struct with an array of chars*
by syphilis (Archbishop) on Nov 25, 2022 at 08:33 UTC
    I'm not going to pursue this at work, but I may pick it up again at home.

    That "work" environment seems pretty weird to me.
    Things might improve there if, rather than using the .msi version they've provided, you installed and ran the "portable" 32-bit SP-5.32.1.1 build on that machine. (I believe you can do that as User.)
    Similarly, on your home PC I recommend installing the portable version over the .msi option.

    And I do encourage people to install and use Inline::C.
    It's the ideal way of doing C and perl API experiments to investigate and tweak the things that will/won't work in the XS environment.

    Cheers,
    Rob.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-18 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found