The attached patch does some changes to make it possible to generate an EXE
file on Win32.
Firstly, main.c looked for the extension .o to know to make an object file;
on Win32 it's .obj. The fix will work for other platforms where it isn't .o
too.
Secondly, the make exec target in the makefile didn't append the .exe to the
generated file.
Unfortunately, the built exe file does...nothing. Well, maybe not quite
nothing, but I don't get any output. So that's what's next to look at. (I
was originally looking at the "[TODO] exec core testing" task, then
discovered this breakage on Win32).
Jonathan
> Unfortunately, the built exe file does...nothing.
Well, I don't know, how exe files on win32 look like, but Parrot
supports these: EXEC_{A_OUT,ELF,MACH_O,COFF} (see src/exec_save.c).
Is any one of these EXEC symbols defined?
(This doesn't imply that the patch shouldn't be applied, though)
> Jonathan
leo
In exec.h
# if PARROT_EXEC_OS_MSWIN32
# define EXEC_COFF
# endif
And COFF is correct. If it were not, I'd have expected a linker error
anyway... I'll see if I have time to dig a bit deeper later on this
afternoon.
Thanks for the suggestion,
Jonathan
Thanks, applied - r8672
leo