I compile the Pychm in windows,But meet a lot of errors......

boyeestudio boyee118 at gmail.com
Tue Jan 9 05:48:41 EST 2007


The Error is show as below:

D:\Downloads\pychm-0.8.4>python setup.py build
running build
running build_py
running build_ext
building 'chm._chmlib' extension
D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL
/nologo
 /INCREMENTAL:NO /LIBPATH:D:\Python24\libs /LIBPATH:D:\Python24\PCBuild
chm.lib
/EXPORT:init_chmlib build\temp.win32-2.4\Release\chm/swig_chm.obj/OUT:build\lib
.win32-2.4\chm\_chmlib.pyd /IMPLIB:build\temp.win32-
2.4\Release\chm\_chmlib.lib
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z 已经在 MSVCRT.lib(cinitexe.obj)
中定义
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a 已经在 MSVCRT.lib(cinitexe.obj)
中定义
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z 已经在 MSVCRT.lib(cinitexe.obj)
中定义
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a 已经在 MSVCRT.lib(cinitexe.obj)
中定义
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z 已在 MSVCRT.lib(cinitexe.obj
)
中定义;已忽略第二个定义
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a 已在 MSVCRT.lib(cinitexe.obj
)
中定义;已忽略第二个定义
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z 已在 MSVCRT.lib(cinitexe.obj
)
中定义;已忽略第二个定义
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a 已在 MSVCRT.lib(cinitexe.obj
)
中定义;已忽略第二个定义
   正在创建库 build\temp.win32-2.4\Release\chm\_chmlib.lib 和对象 build\temp.win
32-2.4\Release\chm\_chmlib.exp
LINK : warning LNK4098: 默认库"MSVCRT"与其他库的使用冲突;使用 /NODEFAULTLIB:l
ibrary
LINK : warning LNK4098: 默认库"LIBC"与其他库的使用冲突;使用 /NODEFAULTLIB:lib
rary
build\lib.win32-2.4\chm\_chmlib.pyd : fatal error LNK1169: 找到一个或多个多重定
义的符号
error: command '"D:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link
.exe"' failed with exit status 1169

How to fix this problem???
PS: if someone has compile it successfully in windows,Please send me a
copy!!!
Thanks a lot!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070109/619adba2/attachment.html>


More information about the Python-list mailing list