C++ 字母构建顺序

标签 c++ build

这是我在 Visual Studio 2010 中的构建输出的片段:

1>------ Build started: Project: Engine, Configuration: Release_PG Win32 ------ 1>icl : warning #10187: PGOPTI instrumentation disables multifile optimizations 1>icl : warning #10188: PGOPTI instrumentation disables IP optimizations
1> !BasketNovel.cpp 1> Compiling precompiled.h - this should happen just once per project. 1> 1> Compiling BasketNovel.h. 1>

1> Camera.cpp 1> Compiling precompiled.h - this should happen just once per project. 1> 1> Compiling BasketNovel.h. 1>

1> Console.cpp 1> Compiling precompiled.h - this should happen just once per project. 1> 1> Compiling BasketNovel.h. 1>

1> Entity.cpp 1> Compiling precompiled.h - this should happen just once per project. 1> 1> Compiling BasketNovel.h. 1>

1> Font.cpp

据我所知,编译器正在按字母顺序构建我的 .cpp 文件。我不太熟悉构建概念。这是正常行为吗?

注意:我使用的是英特尔 C++ 编译器。

最佳答案

编译的顺序并不重要。构建最终产品(可执行文件、库等)的重要步骤是链接步骤,编译步骤中的各个部分将链接在一起。

关于C++ 字母构建顺序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13643302/

相关文章:

c++ - 可以在主体中调用 C++ 中的委托(delegate)构造函数还是仅在初始化列表中调用?

java - 如何覆盖存储在 ant lib 目录中的 ant 任务

c++ - c++ 编译的 DLL 可以在没有大小差异的情况下在代码上有所不同吗?

c++ - 为什么我要为指针返回类型返回一系列字符?

c++ - 使用 openCV 检测 ROI

windows - 如何在 Windows 上安装 rabbitmq 服务器?

windows - 可执行的merge.exe(从MSYS2中提取)未在Windows上运行

angularjs - Foundation 6/Bootstrap 4 - 在 webpack 中使用 sass 设置文件的正确方法

TFS2015 vNext 构建 checkin TFVC

c++ - 通过引用(通过指针)传递参数的 OpenCL 函数中指针访问的优化