A problem while compiling wxpython-src-2.8.0.1...

I do follow the instructions on http://wxpython.sourceforge.net/BUILD.html step by step with my OS of windowXP.

When I do the step 6, the problem happens. After four .obj files of wxregex_regfree.obj、wxregex_regexec.obj、wxregex_regerror.obj、wxregex_regcomp.obj are created,the error occur while linking the four .obj files to wxregexh.lib
.

My compile environment:
OS:windowsXP
python: 2.4
compile tools :cygwin/ bash/ vc7.1(2003)
compile object:wxpython-src-2.8.0.1

Can somebody help me ?

Here is the info of compilation.

-----------------------------Begin-----------------------------------------------

···

cd H:\Bt\Downloads\wxPython-src-2.8.0.1/build/msw

if not exist H:\Bt\Downloads\wxPython-src-2.8.0.1\lib\vc_dll\mswh\wx mk
dir H:\Bt\Downloads\wxPython-src-2.8.0.1\lib\vc_dll\mswh\wx
cat H:\Bt\Downloads\wxPython-src-2.8.0.1\include\wx\msw\setup.h

sed “s
!wxUSE_MEMORY_TRACING 1!wxUSE_MEMORY_TRACING 0!g;s!wxUSE_DEBUG_CONTEXT 1!wxUSE_D
EBUG_CONTEXT 0!g” > H:\Bt\Downloads\wxPython-src-2.8.0.1\lib\vc_dll\mswh\wx\setu
p.h


cd H:\Bt\Downloads\wxPython-src-2.8.0.1/build/msw
nmake -f makefile.vc OFFICIAL_BUILD=1 SHARED=1 MONOLITHIC=0 USE_OPENGL=1 USE_GDI
PLUS=1 CXXFLAGS=/D__NO_VC_CRTDBG__ BUILD=release DEBUG_FLAG=1 WXDEBUGFLAG=h UNIC

ODE=0 MSLU=0

if not exist vc_mswhdll mkdir vc_mswhdll
if not exist …..\lib\vc_dll\mswh\wx\msw mkdir …..\lib\vc_dll\mswh\wx
\msw
cl /EP /nologo “…..\include\wx\msw\genrcdefs.h” > "…..\lib\vc_dll\ms

wh\wx\msw\rcdefs.h"
genrcdefs.h
cl /c /nologo /TC /Fovc_mswhdll\wxregex_regcomp.obj /MD /DWIN32 /Fd…
…\lib\vc_dll\wxregexh.pdb /O2 /D__NO_VC_CRTDBG__ /I…..\include /I…..\lib
\vc_dll\mswh /D__WXMSW__ …..\src\regex\regcomp.c

regcomp.c
cl /c /nologo /TC /Fovc_mswhdll\wxregex_regexec.obj /MD /DWIN32 /Fd…
…\lib\vc_dll\wxregexh.pdb /O2 /D__NO_VC_CRTDBG__ /I…..\include /I…..\lib
\vc_dll\mswh /D__WXMSW__ …..\src\regex\regexec.c

regexec.c
cl /c /nologo /TC /Fovc_mswhdll\wxregex_regerror.obj /MD /DWIN32 /Fd…
..\lib\vc_dll\wxregexh.pdb /O2 /D__NO_VC_CRTDBG__ /I…..\include /I…..\li
b\vc_dll\mswh /D__WXMSW__ …..\src\regex\regerror.c

regerror.c
cl /c /nologo /TC /Fovc_mswhdll\wxregex_regfree.obj /MD /DWIN32 /Fd…
…\lib\vc_dll\wxregexh.pdb /O2 /D__NO_VC_CRTDBG__ /I…..\include /I…..\lib
\vc_dll\mswh /D__WXMSW__ …..\src\regex\regfree.c

regfree.c
if exist …..\lib\vc_dll\wxregexh.lib del …..\lib\vc_dll\wxregexh.lib

link /LIB /NOLOGO /OUT:…..\lib\vc_dll\wxregexh.lib @h:\Temp\nm4.tmp
link: extra operand /OUT:..\\..\\lib\\vc_dll\\wxregexh.lib' Try link --help’ for more information.
NMAKE : fatal error U1077: “link” : 返回代码"0x1"

Stop.

– ERROR! –

andy.

zhu andy wrote:

I do follow the instructions on
http://wxpython.sourceforge.net/BUILD.html step by step with my OS of
windowXP.
When I do the step 6, the problem happens. After four .obj files of
wxregex_regfree.obj、wxregex_regexec.obj、wxregex_regerror.obj、
wxregex_regcomp.obj are created,the error occur while linking the four
.obj files to wxregexh.lib .

My compile environment:
OS:windowsXP
python: 2.4
compile tools :cygwin/ bash/ vc7.1(2003)
compile object:wxpython-src-2.8.0.1

Can somebody help me ?

        link /LIB /NOLOGO /OUT:..\..\lib\vc_dll\wxregexh.lib
@h:\Temp\nm4.tmp
link: extra operand `/OUT:..\\..\\lib\\vc_dll\\wxregexh.lib'
Try `link --help' for more information.
NMAKE : fatal error U1077: "link" : 返回代码"0x1"

You've probably got cygwin's link.exe installed, and that is being found
on the PATH before MSVC's link.exe. Since I never need cygwin's link
what I do is just rename /usr/bin/link.exe to link_.exe or something
like that. I always forget about this whenever I update cygwin so I
guess I should come up with a better solution one of these days.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!