最近给 专门为 C++模块化打造的构建工具 增加了 gcc16/mingw 支持, 可以一键在 Linux 上构建出 windows 的 exe 程序, 欢迎体验 mcpp

6 小时 56 分钟前
 Sunrisepeak

mcpp 构建工具, 对增加了更多工具链的支持 目前已经覆盖主流的 linux/macos/winodws 支持部分的 跨 cpu 架构和操作系统的 交叉编译构建 C++项目, 欢迎大家体验反馈


最小验证 + 支持的工具链集合

mcpp new hello && cd hello
mcpp build --target x86_64-windows-gnu
wine target/../hello.exe

Target Convention toolchain Status
x86_64-linux-gnu gcc (Linux default) or llvm
x86_64-linux-musl gcc 16, fully static
aarch64-linux-musl gcc 16, fully static — cross from x86_64 (qemu-verified) or native
x86_64-windows-gnu gcc 16 MinGW-w64 — native on Windows, cross from Linux (wine-verified)
x86_64-windows-msvc msvc@system (detected VS/BuildTools) or llvm ¹ (Windows default)
aarch64-macos llvm (macOS default)
riscv64-linux-musl 🔄
aarch64-linux-gnu 🔄
x86_64-macos 🔄

✅ verified — CI builds and executes the artifact end-to-end (qemu/wine included) | 🔄 planned

261 次点击
所在节点    程序员
1 条回复
c0xt30a
5 小时 56 分钟前
问一下 OP ,对于以 dll 发布的第三方库 (vc),可以支持么?如果可以就太好了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1227579

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX