In what order does Visual Studio compile source files?

后端 未结 1 991
天涯浪人
天涯浪人 2021-01-25 06:06

I have a C++ library project in Visual Studio 2012, with these files

A.h, A.cpp: defines function Do_A();
B.h, B.cpp: defines function Do_B();
C.h, C.cpp: define         


        
相关标签:
1条回答
  • 2021-01-25 06:22

    That dependency is at link time, not compile time (thus won't show here).

    The position inside the build script is what affects the compile order (and there is no assumption on that, other than compile time dependencies), but that's partly untrue as build could be parallelized. That is, A and B could be built on two different cores, at the same time.

    0 讨论(0)
提交回复
热议问题