【问题标题】:How do I compile C++ file a SINGLE file using the command line on the Windows command line [duplicate]如何使用 Windows 命令行上的命令行将 C++ 文件编译为 SINGLE 文件 [重复]
【发布时间】:2011-08-16 09:35:01
【问题描述】:

可能重复:
Using Visual Studio's 'cl' from a normal command line

我安装了 .net 框架。

我在发帖前进行了搜索。我搜索了compile c++ command line windows

【问题讨论】:

标签: .net c++ compiler-construction compilation


【解决方案1】:

首先,您需要一个编译器。

然后您运行编译器,将文件作为参数传递给它,例如cl myfile.cpp(您可能还想在其中传递一些编译器选项,但哪些取决于您使用的编译器 - Visual Studio 或 gcc或英特尔等)。

MS 为您提供了一个简短的 starter guide,但 this one for gcc 可能更好,因为它描述了所涉及的所有步骤。

【讨论】:

    猜你喜欢
    • 2023-03-14
    • 2021-04-17
    • 1970-01-01
    • 1970-01-01
    • 2016-07-21
    • 1970-01-01
    • 1970-01-01
    • 2018-08-09
    • 1970-01-01
    相关资源
    最近更新 更多