Software Archive
Read-only legacy content
17061 Discussions

Getting errors when using Intel COmpiler in Visual Studio 2012+how to use Intel TBB

Arvind_D_
Beginner
369 Views

Hi

I am using Intel Parallel Studio XE 2013. In VS2012. I am creating some basic code to use Intel TBB.

However I am getting some basic errors-

(1) Error- cannot open source file iostream.h - Statement= #include <iostream.h>

(2) String *StringValue - Error:Identifier String is undefined.


How do I solve above errors. In VS I have activated Intel Compiler using options Project-> Intel Composer XE 2013-> Use Intel C++

(3) How do I use Intel TBB library in my project above?

(4) In Concurrent hashmap example in Intel TBB docs, cstr is used for hashmap of string- can I use cstr for hashmap of integers and double and float as well.

Yours sincerely,

Arvind.

0 Kudos
3 Replies
SergeyKostrov
Valued Contributor II
369 Views
>>(1) Error- cannot open source file iostream.h - Statement= #include >> >>(2) String *StringValue - Error:Identifier String is undefined. I think first two errors are related and use iostream instead of iostream.h. It also makes sense to verify if iostream.h exists in VS 2012 Include directory.
0 Kudos
VADIM_G_Intel
Employee
369 Views

Hi Arvind,

>> (3) How do I use Intel TBB library in my project above?

To use Intel TBB in your C++ project do the following: Open project properties dialog, "Configuration Properties -> Intel Performance Libraries" and set "Use Intel TBB" to "Yes".

Regards, Vadim G.

0 Kudos
Vladimir_P_1234567890
369 Views

Arvind D. wrote:

(4) In Concurrent hashmap example in Intel TBB docs, cstr is used for hashmap of string- can I use cstr for hashmap of integers and double and float as well.

Hello Arvind,

What sample you are writing about? examples of concurrent hash map usage can be found in getting started and fibonacci examples. Both are available in composer.

--Vladimir

0 Kudos
Reply