Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

tbb3 Compiler error

Denis_Bolshakov
Beginner
307 Views
Hello,

I have just tried to compile TBB30_20100314(development release) by MinGW and got compiler error
../../src/tbb/market.cpp:68: error: `max' was not declared in this scope

Is't call of std::max or tbb has own function? Otherwise there is no any namespace specified.

Please fix it.
0 Kudos
1 Solution
Alexey-Kukanov
Employee
307 Views
Thanks for telling us about the problems. We will fix those, as well as some others, and publish another development release soon.

View solution in original post

5 Replies
Denis_Bolshakov
Beginner
307 Views
As workaround I specfied namespace std for max function,
after that I got the same errors about 'min' in the same file.

First of them was here
../../src/tbb/market.cpp:114: error: `min' was not declared in this scope

Other errors were situated in the same source file.

If I specify namespace std, then build is Ok.
Alexey-Kukanov
Employee
308 Views
Thanks for telling us about the problems. We will fix those, as well as some others, and publish another development release soon.
Denis_Bolshakov
Beginner
307 Views
Ok,
Thanks a lot.
Denis_Bolshakov
Beginner
307 Views
I've tried to compile TBB3 by MS VS 10.

And I've received the following results:
1. Compiler errors. It was connected with my previous changes in TBB sources file(i did it to get compilation for MinGW). After reverting those changes build was OK, but
2. There are may warnings. If you are interested in them I can attach build log.
Vladimir_P_1234567890
307 Views
stable release with the fix posted to the open source site.

--Vladimir
Reply