我试图将python程序转换为独立版而不捆绑。到目前为止,我有:
我的问题是完成最后一步:
我使用了以下DOS命令:
@echo off
:: Load compilation environment
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
:: Invoke compiler with any options passed to this batch file
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe %*
:: call the MVSC compiler
cl /c main.c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I"c:\Python34\include"
-Ic:\Python34\PC /main.c /link /OUT:"main.exe" /SUBSYSTEM:CONSOLE
/MACHINE:X86 /LIBPATH:"c:\Python34\libs" /LIBPATH:"c:\Python34\PCbuild"
:: create main.exe out of main.obj
cl main.obj -o main.exe
我收到以下错误:
/out:main.exe
/out:main.exe
main.obj
LINK : fatal error LNK1104: cannot open file 'python34.lib'