Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SergeyKostrov
Valued Contributor II
62 Views

Intel C++ compiler compiles sources in opposite order compared to Microsoft C++ compiler

Intel C++ compiler compiles sources in opposite order compared to Microsoft C++compiler. Please take a look:

Visual Studio 2005 - Microsoft C++compiler:

------ Build started: Project: AbcTestApp, Configuration: Debug Win32 ------
Compiling...
Stdphf.cpp
Aaa.cpp
Bbb.cpp
Ccc.cpp
Ddd.cpp
Eee.cpp
Fff.cpp
Ggg.cpp
Hhh.cpp
Iii.cpp
Jjj.cpp
Kkk.cpp
Lll.cpp
Mmm.cpp
Nnn.cpp
Ooo.cpp
Ppp.cpp
Qqq.cpp
Rrr.cpp
Sss.cpp
Ttt.cpp
Uuu.cpp
Vvv.cpp
Www.cpp
Xxx.cpp
Yyy.cpp
Zzz.cpp
...

Visual Studio 2005 - Intel C++ compiler:

------ Build started: Project: AbcTestApp, Configuration: Debug Win32 ------
Compiling with Intel C++ Compiler XE 12.1.3.300 [IA-32]... (Intel C++ Environment)
Stdphf.cpp
Zzz.cpp
Yyy.cpp
Xxx.cpp
Www.cpp
Vvv.cpp
Uuu.cpp
Ttt.cpp
Sss.cpp
Rrr.cpp
Qqq.cpp
Ppp.cpp
Ooo.cpp
Nnn.cpp
Mmm.cpp
Lll.cpp
Kkk.cpp
Jjj.cpp
Iii.cpp
Hhh.cpp
Ggg.cpp
Fff.cpp
Eee.cpp
Ddd.cpp
Ccc.cpp
Bbb.cpp
Aaa.cpp
...

It looks like someincompatibility with Microsoft C++ compiler.So, I wonder if it can be investigated and fixed.

My environment:

OS: Windows XP 32-bit
IDE: Visual Studio 2005 SP1
C++ compiler: Intel C++Composer XE 2011 Update 9

Best regards,
Sergey

0 Kudos
1 Reply
Om_S_Intel
Employee
62 Views

The dependancy for the "precompiled headers" using /Yu should be same in MIcrosoft compiler and Intel compiler. The compilation sequesce for rest of the C and C++ files should not matter. The dependancy information is checked during linking of application.

Why are you looking for specicific compilation sequence?

Om

Reply