Thread: Need help with nmake /f win32.mak
I can't get "nmake /f win32.mak" to execute properly. I'm running under Windows 2000 Professional with Microsoft Visual Studio.NET (2002).
I am getting the following output when I run the command in the interfaces\libpq directory.
Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation. All rights reserved.
Copyright (C) Microsoft Corporation. All rights reserved.
Building the Win32 static library...
if not exist ".\Release/" mkdir ".\Release"
Parse Error 9
Parse Error 9
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm57.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm58.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm59.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5A.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5B.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5C.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5D.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5E.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5F.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm60.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm61.tmp
Bad command or file name
link.exe -lib @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm62.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm63.tmp
Bad command or file name
rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc
Bad command or file name
link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm64.tmp
Bad command or file name
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm58.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm59.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5A.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5B.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5C.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5D.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5E.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5F.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm60.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm61.tmp
Bad command or file name
link.exe -lib @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm62.tmp
Bad command or file name
cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm63.tmp
Bad command or file name
rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc
Bad command or file name
link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm64.tmp
Bad command or file name
Any help which can be provided would be appreciated!
Phil
> I can't get "nmake /f win32.mak" to execute properly. I'm running under Windows 2000 > Professional with Microsoft Visual Studio.NET (2002). > I am getting the following output when I run the command in the interfaces\libpq directory. > Microsoft (R) Program Maintenance Utility Version 7.00.9466 > Copyright (C) Microsoft Corporation. All rights reserved. ... > cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm57.tmp > Bad command or file name This looks like your PATH may be incorrect. Make sure you are running the command from a "Visual Studio Command Prompt" (available under Visual Studio in the start menu), not just a general command prompt. This will set your PATH and other Visual Studio environment variables correctly. //Magnus
Phil Rivard wrote: > I can't get "nmake /f win32.mak" to execute properly. I'm running > under Windows 2000 Professional with Microsoft Visual Studio.NET > (2002). > > I am getting the following output when I run the command in the > interfaces\libpq directory. The docs say this: "To build everything that you can on Windows, change into the src directory and type the command" So you need to start in \path\to\pgsqlsource\src, *not* \path\to\pgsqlsource\interfaces\libpq Also, make sure you run C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat to set up your environment properly prior to running nmake. HTH, Joe