您现在的位置是:首页 > 编程 > 

Windows 搭建ninja 编译c++的环境

2025-07-20 11:40:39
1. 系统安装python, 测试版本为(.7.0) 2. 从获取get-pip.py https://bootstrap.pypa.io/get-pip.py . 安装pip python get-pip.py 4. 安装ninja pip install ninja 5. 准备CMakeLists.txt cmake_minimum_re

1. 系统安装python, 测试版本为(.7.0)

2. 从获取get-pip.py

https://bootstrap.pypa.io/get-pip.py

. 安装pip

python get-pip.py

4. 安装ninja

pip install ninja

5. 准备

cmake_minimum_required(VERSIO .22)
project(hello_ninja)
add_executable(${PROJECT_AME} )

6. 准备

#include <iostream>
#include <conio.h>
int main(int argc, char *ar[])
{
    std::cout << hello world << std::endl;
    _getch();
    return 0;
}

7. 编译, 从vs2019 Developer Command Prompt for VS 2019进入命令窗口

(与上述的和同级目录)

mkdir build

cd build

cmake -G inja ..

ninja

#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/biancheng/1097679.html

相关标签:无
上传时间: 2025-07-15 08:14:46
留言与评论(共有 14 条评论)
本站网友 南山租房
26分钟前 发表
从vs2019 Developer Command Prompt for VS 2019进入命令窗口 (与上述的和同级目录) mkdir build cd build cmake -G inja .. ninja
本站网友 少林寺武术
7分钟前 发表
1. 系统安装python
本站网友 qq之父
1分钟前 发表
endl;     _getch();     return 0; } 7. 编译
本站网友 怀孕初期的症状
9分钟前 发表
测试版本为(.7.0) 2. 从获取get-pip.py https
本站网友 深圳二手房买卖合同
4分钟前 发表
本站网友 博兴租房
7分钟前 发表
cout << hello world << std
本站网友 迷摄影
23分钟前 发表
cout << hello world << std
本站网友 手机内存不足
18分钟前 发表
//bootstrap.pypa.io/get-pip.py . 安装pip python get-pip.py 4. 安装ninja pip install ninja 5. 准备 cmake_minimum_required(VERSIO .22) project(hello_ninja) add_executable(${PROJECT_AME} ) 6. 准备 #include <iostream> #include <conio.h> int main(int argc
本站网友 未来密码智能家居怎么样
11分钟前 发表
本站网友 重庆户外
14分钟前 发表
cout << hello world << std
本站网友 延时电路
26分钟前 发表
endl;     _getch();     return 0; } 7. 编译
本站网友 鱼珠租房
6分钟前 发表
从vs2019 Developer Command Prompt for VS 2019进入命令窗口 (与上述的和同级目录) mkdir build cd build cmake -G inja .. ninja
本站网友 4k视频下载
17分钟前 发表
从vs2019 Developer Command Prompt for VS 2019进入命令窗口 (与上述的和同级目录) mkdir build cd build cmake -G inja .. ninja