[python-win32] Compiling Python as a static .exe
Mark Hammond
skippy.hammond at gmail.com
Tue Jan 21 00:47:00 CET 2014
[oops - resending with CC to python-win32 list]
On 21/01/2014 12:12 AM, Russell Wallace wrote:
> Hi,
>
> I'm trying to compile Python 2.7.6 as a statically linked 64-bit Windows
> executable, and I'm getting a weird error message. As per
> http://stackoverflow.com/questions/21231439/unresolved-external-symbol-main-no-underscore I
> have a command line that looks like:
>
> cl /DPy_BUILD_CORE ... /link Advapi32.lib Shell32.lib User32.lib
What exactly is in the "..." - it looks to me that you simply don't have
a main defined (and neither does the code that builds pythonxx.dll -
only python.exe has a main)
Mark
More information about the python-win32
mailing list