Installed strawberry Perl on my Windows XP, so I can test my Perl modules.
One of the modules I am writing at the moment is based on a big quantity of C code. Fortunately strawberry Perl includes a version of MingW C compiler, and a standard C library (unfortunately a little limited, as it does not include standard POSIX functions like sleep or mkstemp). In any way, after a day of C programming, my program compiled without major warning.
My problem, at the moment, is running the program. I have a strange problem with the open and read C functions. As I made a post on my blog about it, if you feel you are able to help me, please visit it at http://null.perl-hackers.net/2008/03/cant_understand_this_c_thingy.html.
Thank you in advance!
Basically, under windows it must be made explicit if we are opening a binary or a textual file. So, open with flag O_BINARY.
Cheers.