Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

#####.cpp ?

Christopher_Pisz
Beginner
603 Views
I set up my solution to swtich from using the MS compiler to using Intel's Composer XE. For every .cpp file that compiles the output window says

"compiling with Intel C++ Compiler XE 12.1.4.325 (IA-32)...(Intel C++ Environment
.cpp
39442.cpp
39442.cpp
39442.cpp
...
"

The numbers change with different files.
What are these numbered.cpp files that aren't part of my source?
0 Kudos
5 Replies
Judith_W_Intel
Employee
603 Views

I think this is what's happening...

The Intel compiler doesn't support #import. So every time it sees #import in your source file it creates a temporary file and then feeds it to the Microsoft compiler to process. These temporary files are what your are seeing being compiled.
0 Kudos
Christopher_Pisz
Beginner
603 Views
How then should I bring in COM .tlb files? Or should I just leave it as is?
0 Kudos
Judith_W_Intel
Employee
603 Views

This is just the way it is, I was just trying to explain why you are seeing the numbered files.
0 Kudos
Christopher_Pisz
Beginner
603 Views
Ok. Thanks. I'll keep things the same then.
0 Kudos
SergeyKostrov
Valued Contributor II
603 Views
How then should I bring in COM .tlb files?..


Create a simple project in a Visual Studiowith all '#import' directives you needand compile it with Microsoft C++ compiler.
It will create all COM-wrappers, that is *.h and *.cpp files. Save these files, add toyour project,and compile sources
with Intel C++ compiler. However you should comment or '#ifdef' all'#import' directives.

I used that trick to create *.h and *.cpp COM-wrappers for MapPoint 2009 and used them without '#import' directives in
a different ptoject.

Best regards,
Sergey

0 Kudos
Reply