Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

compiling error on Windows

Zhu_W_Intel
Employee
175 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_K_Intel3
Employee
175 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.
Reply