0324-在windows下简单试试 make

配置环境

mingw32-make.exeg++.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

执行

posted @ 2025-03-24 23:00  lucky_doog  阅读(26)  评论(0)    收藏  举报