SyN/AcK has asked for the wisdom of the Perl Monks concerning the following question:

Hello fellow PerlMonks!

I have a question about using Inline.pm. I recently got everything installed and running on my Windows XP system. For background, I'm using the most up to date version of ActiveState's Perl, and the most recent version of Inline. Inline is working with my Visual Studio .NET 2002 compiler, cl.exe.

So, here's what I want to do... I want to take some Linux written C code, and inline it into my perl script, however, I do not seem to have the proper header functions to do so. For example, I do not seem to have a socket.h, config.h, and others. Is there anything I can do about this, or am I just kind of screwed?

Edit by tye, add P tags

Replies are listed 'Best First'.
Re: Using Inline.pm
by castaway (Parson) on Jul 17, 2003 at 07:07 UTC
    C socket code can't be just copied from a unix environment to Windows, and expected to work. Windows uses winsock.h, for example, instead of socket.h, so you're going to have to do a little porting.

    C.

Re: Using Inline.pm
by BUU (Prior) on Jul 17, 2003 at 02:30 UTC
    You could try messing about with cygwin but if a piece of C relies on something as basic as Socket.h, yer probably screwed. Then again, it might only need a few constants from socket.h, in which case you could simply create your own and copy the required constants.