gpt4 book ai didi

c++ - 错误 : The term 'bootstrap-vcpkg.bat' is not recognized : While Install C and C++ libraries for Visual Studio 2017 on Win10

转载 作者:行者123 更新时间:2023-12-02 19:31:50 30 4
gpt4 key购买 nike

我正在尝试在我的 Windows 10 机器上为 VS-2017 安装 C 和 C++ 库,但遇到了以下 vcpkg- 错误。这是我第一次在我的机器上安装它。顺便说一句,我使用的是 Windows Powershell。我搜索了很多在线论坛,但无法弄清楚我的机器或软件包安装有什么问题。请建议我如何处理这个问题

    PS C:\Documents\DRAGONFLY\vkpackage\vcpkg-master\vcpkg-master> bootstrap-vcpkg.bat
bootstrap-vcpkg.bat : The term 'bootstrap-vcpkg.bat' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ bootstrap-vcpkg.bat
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : **ObjectNotFound: (bootstrap-vcpkg.bat:String)** [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

最佳答案

如评论部分所述,请遵循文档:C modules for Windows devices指令一个接一个地命令。

 git clone https://github.com/Microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg install azure-iot-sdk-c:x64-windows
.\vcpkg --triplet x64-windows integrate install

如果有帮助,请标记为已回答,以便对其他社区成员有所帮助。

关于c++ - 错误 : The term 'bootstrap-vcpkg.bat' is not recognized : While Install C and C++ libraries for Visual Studio 2017 on Win10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61673615/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com