in reply to perlxstut (compiler problems)

I think you just need to execute vcvars32.bat, which is usually located in the same folder that houses 'cl.exe'. That sets up some environment variables that enables 'sys/types.h' (and other needed files) to be found.

I also think you don't want to be accessing PerlCRT.dll and PerlCRT.lib (which would best be removed from perl's core folder).

Fwiw, I found that using Inline::C (which autogenerates the XS file for you) was the best introduction to writing perl extensions.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: perlxstut (compiler problems)
by llee (Initiate) on Jul 16, 2006 at 00:54 UTC
    I couldn't find vcvars32.bat on my system. I don't think that it's installed.
      Are you using the free download from Microsoft ? I've not used it ... I assume that it comes with a vcvars32.bat (as is the case with VC7.0 and earlier) that you run to set up the necessary environment variables. But, of course, assumptions are especially susceptible to error :-)

      Basically you need to set the "INCLUDE" environment variable to include the locations of the header files ... but then there are other environment variables to set up, too. If you can't dig up the information as to how that is normally done, then I guess you'll need the advice of someone who has actually used that particular compiler.

      Cheers,
      Rob