On 19 Nov 2003 16:03:59 +0100, Juergen Boemmels <[EMAIL PROTECTED]> wrote:
> Could you try out the attached patch. > diff -u -r1.16 mswin32.pl --- config/init/hints/mswin32.pl 15 Oct 2003 12:06:24 -0000 1.16 +++ config/init/hints/mswin32.pl 19 Nov 2003 14:30:26 -0000 @@ -95,6 +95,19 @@ Configure::Data->set( link => 'gcc', libs => $libs, + ccflags => '-DWIN32 -DNO_STRICT -DNDEBUG -D_CONSOLE', + cc_o_out => '-o ', + cc_exe_out => '-o ', + cc_debug => '-g', + + ld => ${cc}, + ldflags => '', + ld_out => '-o ', + cc_ldflags => '', + ld_debug => '-g', + ld_shared => '-mdll', + libs => '-lmsvcrt' + slash => '\\', ar => 'ar', ); Hello again, I tried that (needed a comma after libs => '-lmsvcrt') and it didn't seem to make any difference. I also tried changing -DWIN32 to -DGARBAGEWIN32 but I didn't get any additional errors so my guess would be it is not figuring out $is_mingw properly (I am using --cc=gcc). BTW, I ditched djgpp and installed mingw, and got a fresh snapshot (2003-11-26 16:01) of parrot, and got pretty much the same results (duplicates removed): GCC.EXE: unrecognized option `-nologo' GCC.EXE: unrecognized option `-nodefaultlib' GCC.EXE: unrecognized option `-release' test.c:2:21: pthread.h: No such file or directory GCC.EXE: test.o: No such file or directory Bad command or file name test.c:2:23: arpa/inet.h: No such file or directory test.c:2:21: sysexit.h: No such file or directory test.c:2:24: sys/socket.h: No such file or directory test.c: In function `main': test.c:15: warning: left shift count >= width of type test.c: In function `main': test.c:11: warning: initialization makes pointer from integer without a cast test.o(.text+0x30):test.c: undefined reference to `memalign' test.o(.text+0x3c):test.c: undefined reference to `posix_memalign' test.c:12: parse error before "set_handler" test.c:12: parse error before "__sighandler_t" test.c: In function `set_handler': test.c:13: `__sighandler_t' undeclared (first use in this function) test.c:13: (Each undeclared identifier is reported only once test.c:13: for each function it appears in.) test.c:13: parse error before numeric constant test.c: In function `main': test.c:13: storage size of `old' isn't known test.c:13: storage size of `new' isn't known test.c: In function `main': test.c:17: storage size of `its' isn't known test.c:17: storage size of `ots' isn't known test.c:20: `SIGALRM' undeclared (first use in this function) test.c:20: (Each undeclared identifier is reported only once test.c:20: for each function it appears in.) test.c:24: `ITIMER_REAL' undeclared (first use in this function) test.o(.text+0x49):test.c: undefined reference to `setenv' Trying to run make after that lot gave me: $ make echo Compiling with: Compiling with: make: D:Parrotperlbinperl.exe: Command not found make: *** [flags_dummy] Error 127 Regards, Pete