Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

compiling error on Windows

Zhu_W_Intel
Employee
457 Views
I am using TBB 2.1 on Windows, compiling with VS 2005. Got this error when I compile my project:
c:\program files\intel\tbb\2.1\include\tbb\tbb_stddef.h(125) : error C2632: '__int64' followed by 'long' is illegal
1>c:\program files\intel\tbb\2.1\include\tbb\tbb_stddef.h(125) : error C2632: '__int64' followed by 'long' is illegal
1>c:\program files\intel\tbb\2.1\include\tbb\tbb_stddef.h(125) : error C2632: '__int64' followed by 'int' is illegal

Please help.

Did anyone see this before? I can't find a way to search this forum. Sorry if many people have asked this before.
0 Kudos
1 Reply
Alexey-Kukanov
Employee
457 Views
My guess is that somehow int64_t is already #defined as either int or long before inclusion of tbb_stddef.h. Hard to say something more definite without seeing code. Note I was unable to find such a #define in VS headers, so I'd guess it can happen in some other header you include, or directly in the code.
0 Kudos
Reply