【发布时间】:2021-03-09 03:49:12
【问题描述】:
我想根据这个指令构建 c++ 库“botan”:
https://botan.randombit.net/handbook/building.html(适用于 Windows)
第二个命令是这样的: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库?
【问题讨论】:
-
您在 Windows 上使用什么编译器?你用的是什么外壳?
nmake是一个相当原始的工具,但它仍然包含在一些 Visual Studio 安装中。 -
我使用 cmd,当我运行 nmake.exe 时仍然收到以下消息,以响应“cl”不被识别为内部或外部命令,