Community
cancel
Showing results for 
Search instead for 
Did you mean: 
shyaki
Beginner
152 Views

got strange error in 2010 when compiling with intel c++ compiler in Custom Build tool

I used to be able to call icl.exe to compile a cpp file using the custom build tool in 2005.
But I failed to do so in 2010. I got strange errors, but I could compile the same file in the command line.
It seems to me that VS2010 always run its own process before calling the external icl.exe.
Could you give me some hint about how to solve this? Thanks.





C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(78): warning #1552: unrecognized attribute "repeatable"

1> REPEATABLE

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(79): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Parameter ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(109): warning #1552: unrecognized attribute "repeatable"

1> REPEATABLE

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(110): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Parameter )|SA( ReturnValue ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(141): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Parameter ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(152): warning #1552: unrecognized attribute "repeatable"

1> REPEATABLE

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(153): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( ReturnValue ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(163): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Method ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(173): warning #1552: unrecognized attribute "repeatable"

1> REPEATABLE

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(174): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Parameter ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(183): warning #1552: unrecognized attribute "repeatable"

1> REPEATABLE

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(184): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Parameter )|SA( ReturnValue ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(193): warning #1552: unrecognized attribute "repeatable"

1> REPEATABLE

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(194): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Parameter ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(205): warning #1552: unrecognized attribute "repeatable"

1> REPEATABLE

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\codeanalysis\\sourceannotations.h(206): warning #1552: unrecognized attribute "source_annotation_attribute"

1> [source_annotation_attribute( SA( Parameter )|SA( ReturnValue ) )]

1> ^

1>

1>C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include\\xtr1common(355): catastrophic error : rvalue references not yet implemented

1> struct _Remove_reference<_Ty&&>

0 Kudos
2 Replies
Brandon_H_Intel
Employee
152 Views

It looks like that the compiler is being called from an environment setup for Visual Studio 2010*, but the compiler itself is in a Visual Studio 2005* or 2008* compatibility mode (i.e. using /Qvc8 or /Qvc9). Ideally, I would make sure the custom build step includes running "compilervars.bat vs2010 " before using icl.exe, but you may be able to get away with things by just adding /Qvc10 as a compiler option.
Brandon_H_Intel
Employee
152 Views

I should add that this only applies to Intel Parallel Composer 2011's compiler. The compiler in the Intel C++ Compiler 11.1 professional edition doesn't support Visual Studio 2010*.
Reply