Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Christopher_Pisz
Beginner
38 Views

#####.cpp ?

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
38 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.
Christopher_Pisz
Beginner
38 Views

How then should I bring in COM .tlb files? Or should I just leave it as is?
Judith_W_Intel
Employee
38 Views


This is just the way it is, I was just trying to explain why you are seeing the numbered files.
Christopher_Pisz
Beginner
38 Views

Ok. Thanks. I'll keep things the same then.
SKost
Valued Contributor II
38 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