0324-在windows下简单试试 make
配置环境
把 mingw32-make.exe 和 g++.exe 程序加入到系统环境变量里
C:\Program Files\RedPanda-Cpp\mingw64\bin\
项目结构:

只要将 https://github.com/nlohmann/json/tree/develop/include 下的 nlohmann 目录拷贝到新建工程的 include 目录下
Makefile
all:main.cpp
g++ main.cpp -I./include -o json.exe
.PHONY:clean
del json.exe
执行


浙公网安备 33010602011771号