Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Brethren and sisters, I gather before you today to ask a simple question regarding Activeperl on Windows NT. Has anyone ever had to write a module using XS under this system? I've installed MS visual c++ and activeperl, and can find no infoes. I've only ever done this on Linux, how different can it be?? I'd appreciate a word in the right direction.. thanks.

Replies are listed 'Best First'.
Re: Windows XS
by clintp (Curate) on Mar 13, 2001 at 20:38 UTC
    I've used XS against the Activestate package with VC++ without too many problems (a while ago). Normally, my only issue is that I run into this linking problem with the default makefiles. I left this note in my play directory when I was learning about it:
    The perlxstut examples can be followed almost to the letter, except:

    The link line must read

    $(AR) /OUT:libmylib.lib ($OFILES)

    Note the "cr" is gone and the "libmylib($LIBEXT)" thingy is replaced with /OUT: and the name of the target library.

      Clint, Your solution rox! Thanx a bunch.
Re: Windows XS
by c-era (Curate) on Mar 13, 2001 at 20:06 UTC
    I've been just starting to use XS, and MS Visual c++ has worked great. I haven't done any XS work on *nix, but I used the standared perl docs and didn't have any problems. I have used NT and 2000 (I've heard that running 'perl Makefile.PL' on Win 9X/ME doesn't format the make file correctly for nmake, so you'll need to format it by hand).
Re: Windows XS
by ceeb (Initiate) on Mar 14, 2001 at 11:51 UTC
    Thank you for your help...

    campbell