Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

fireartist (6128)

  (email not shown publicly)

Journal of fireartist (6128)

Monday October 17, 2005
04:23 AM

problem solved: par, mingw win32, compilation failure

[ #27203 ]

Compilation of PAR 0.89 fails with this error message:

SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX  -I"C:\usr\local\perl\lib\CORE" s
In file included from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
                 from mktmpdir.h:3,
                 from mktmpdir.c:1,
                 from static.c:8:
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/io.h:162: 39: macro "mk
dir" requires 2 arguments, but only 1 given
dmake:  Error code 129, while making 'static.o'
dmake:  Error code 255, while making 'subdirs'

Solution: Near the top of the PAR file "myldr/static.c" change this:

#ifdef WIN32
# include <process.h>
# define mkdir(file, mode) _mkdir(file)

to this (just add the io.h line):

#ifdef WIN32
# include <io.h>
# include <process.h>
# define mkdir(file, mode) _mkdir(file)

keywords: PAR, mingw, perl, windows, win32, mkdir, compilation failure


The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.