[issue10615] Trivial mingw compile fixes

Johann Hanne report at bugs.python.org
Tue Dec 7 07:54:23 CET 2010


Johann Hanne <python at jf.hanne.name> added the comment:

- Why is the generated pyconfig.h not good enough? Could we modify the ./configure script instead?
Probably setup.py needs to be extended; I did not have a deep look into the build system though

- the "empty.c" should remain empty... Why not use PC/WinMain.c instead?
It seems to be that MinGW does not support the wWinMain unicode entry point; the empty.c hack is just to show that it's actually linking

- why is a WinMain required when python.c is supposed to define a 
main()?
Good question; probably just a question of linker flags; I will have a look if my time permits

- Is the final binary a console application or a Windows application?
A Console application; creating a GUI application is easily done with the "-mwindows" gcc flag, but then you will have no Python console when not using idle or similar

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10615>
_______________________________________


More information about the Python-bugs-list mailing list