【发布时间】:2018-10-28 16:49:11
【问题描述】:
我已经在 Windows 上成功设置了 Clang 和 MingW,所以我可以运行以下命令:
clang++ -target x86_64-pc-windows-gnu helloworld.cpp -o helloworld.exe -v
问题: 如何将简单的 cmd 转换为 Makefile 兼容?
我对此完全陌生。谢谢
【问题讨论】:
标签: c++ eclipse gcc makefile clang
我已经在 Windows 上成功设置了 Clang 和 MingW,所以我可以运行以下命令:
clang++ -target x86_64-pc-windows-gnu helloworld.cpp -o helloworld.exe -v
问题: 如何将简单的 cmd 转换为 Makefile 兼容?
我对此完全陌生。谢谢
【问题讨论】:
标签: c++ eclipse gcc makefile clang
试试这个:
# Makefile
helloworld.exe: helloworld.cpp
clang++ -v -target x86_64-pc-windows-gnu -o $@ $^
参考资料:
【讨论】: