|
From: | Jonathan Zhang |
Subject: | problems with building make on windows |
Date: | Sun, 16 Jun 2002 18:47:35 -0700 |
hi folks,
I downloaded make-3.79 and trying to build it on windowsXP, after I say
nmake /f NMakefile, I got the following compiling error:
NMAKE /f NMakefile LDFLAGS="w32\subproc\WinRel\subproc.lib /NOLOGO /SUBS YSTEM:console /INCREMENTAL:no /MACHINE:I386 /OUT:WinRel/make.exe" CFLAGS="/nolog o /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D WINDOWS32 /D _CONS OLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/ /Fp.\WinRel/make.pch /Fo.\WinRel /" OUTDIR=WinRel WinRel/make.exe Microsoft (R) Program Maintenance Utility Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl /nologo /MT /W3 /GX /Zi /YX
/I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/ /Fp.\WinRel/mak e.pch /Fo.\WinRel/ /c main.c main.c main.c(738) : warning C4101: 'fd' : unreferenced local variable main.c(819) : error C2065: 'LOCALEDIR' : undeclared identifier main.c(853) : warning C4113: 'void (__cdecl *)()' differs in parameter lists fro m 'void (__cdecl *)(int )' main.c(854) : warning C4113: 'void (__cdecl *)()' differs in parameter lists fro m 'void (__cdecl *)(int )' main.c(1560) : warning C4308: negative integral constant converted to unsigned t ype main.c(1560) : warning C4308: negative integral constant converted to unsigned t ype main.c(1731) : warning C4018: '<' : signed/unsigned mismatch main.c(1813) : warning C4013: 'close' undefined; assuming extern returning int NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N MAKE.EXE"' : return code '0x2' Stop. so I went to line 819 on main.c and commented out the line that contains
LOCALEDIR, and then attempted to rebuild it, i got:
NMAKE /f NMakefile LDFLAGS="w32\subproc\WinRel\subproc.lib /NOLOGO /SUBS YSTEM:console /INCREMENTAL:no /MACHINE:I386 /OUT:WinRel/make.exe" CFLAGS="/nolog o /MT /W3 /GX /Zi /YX /I . /I glob /I w32/include /D WIN32 /D WINDOWS32 /D _CONS OLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/ /Fp.\WinRel/make.pch /Fo.\WinRel /" OUTDIR=WinRel WinRel/make.exe Microsoft (R) Program Maintenance Utility Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl /nologo /MT /W3 /GX /Zi /YX
/I . /I glob /I w32/include /D WIN32 /D W
INDOWS32 /D _CONSOLE /D HAVE_CONFIG_H /O2 /D NDEBUG /FR.\WinRel/ /Fp.\WinRel/mak e.pch /Fo.\WinRel/ /c main.c main.c main.c(738) : warning C4101: 'fd' : unreferenced local variable main.c(853) : warning C4113: 'void (__cdecl *)()' differs in parameter lists fro m 'void (__cdecl *)(int )' main.c(854) : warning C4113: 'void (__cdecl *)()' differs in parameter lists fro m 'void (__cdecl *)(int )' main.c(1560) : warning C4308: negative integral constant converted to unsigned t ype main.c(1560) : warning C4308: negative integral constant converted to unsigned t ype main.c(1731) : warning C4018: '<' : signed/unsigned mismatch main.c(1813) : warning C4013: 'close' undefined; assuming extern returning int link @C:\DOCUME~1\JONATH~1\LOCALS~1\Temp\nma01452. subproc.lib(sub_proc.obj) : error LNK2001: unresolved external symbol _debug_fla g WinRel/make.exe : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N MAKE.EXE"' : return code '0x2' Stop. I don't understand how to fix this problem, can someone help me out?
thank you!
-jonathan
|
[Prev in Thread] | Current Thread | [Next in Thread] |