簡體   English   中英

'nmake' 未被識別為內部或外部命令

[英]'nmake' is not recognized as an internal or external command

我想根據此說明構建 c ++ 庫“botan”: https://botan.randombit.net/handbook/building.html

第二個命令是這樣的: nmake

結果我得到'nmake' is not recognized as an internal or external command

在我嘗試打開 nmake.exe 后,最終得到以下結果: cl /DBOTAN_DLL=__declspec(dllexport) /EHs /GR /D_WIN32_WINNT=0x0600 /MD /bigobj /O2 /Oi -DBOTAN_IS_BEING_BUILT /W4 /wd4250 /wd4251 /wd4275 /wd4127 /Ibuild\include /Ibuild\include\external /nologo /c C:/botan/botan/Botan-2.17.2/src/lib/asn1/alg_id.cpp /Fobuild\obj\lib\asn1_alg_id.obj

'cl' is not recognized as an internal or external command

NMAKE: fatal error U1077: cl: returned code "0x1"

Stop.

問題:如何連接nmake,或者如何建立一個botan庫?

構建說明假設nmake位於 PATH 上的某個位置。 如果您運行隨機cmd shell,則可能不會出現這種情況。 此外, nmake假定其他可執行文件也將在 PATH 上。

使用 Visual Studio,有一個 Visual Studio 命令提示符。 這是安裝文件夾中的批處理文件。 運行此命令會將 PATH 設置為特定的 Visual Studio 安裝。 因此,您可以運行屬於該 Visual Studio 安裝的nmake

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM