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

TBB tbb41_20130116oss - Visual Studio 2012 - Windows 8

Oleg1
Beginner
340 Views

Had a project on Visual Studio 2010, with TBB tbb40_233oss, on Windows 7. Everything worked well, for long time, through many modifications.

Copied same project to Windows 8, opened with Visual Studio 2012, the project is 'updated' successfully. As usual added TBBROOT env.variable to windows, added all appropriate TBB include and lib references to the project. When compiling - getting error:

error C1004: unexpected end-of-file found    ...\tbb41_20130116oss\include\tbb\internal\_tbb_windef.h     Line: 37

Is there any simple solution to that? I could not find myself or by googling, will appreciate very much any hint. Thanks

0 Kudos
5 Replies
Vladimir_P_1234567890
340 Views

hello,

That's strange. Could you check that this file contains 82 lines in your case?

--Vladimir

0 Kudos
Oleg1
Beginner
340 Views

Hello Vladimir,

I did not change anything, only downloaded. This file tbb41_20130116oss\include\tbb\internal\_tbb_windef.h starts with line #1 as /*, next line #2 is Copyright...; line #81 is the last not empty line, it's #endif

I attached the file here. The line #37 is an #endif.

Thanks     -- Oleg

0 Kudos
Vladimir_P_1234567890
340 Views

It looks there is a very nice bug in studio:)

I've reproduced this locally. Instead of putting #error message it writes EOF error.

Define _WIN32_WINNT macro to 0x0501 or above. we have dropped the support of Windows 2000 in TBB 4.1.

--Vladimir

0 Kudos
Oleg1
Beginner
340 Views

Thanks Vladimir,

Actually, after a reinstallation (for unrelated reasons) the problem is gone, no more this error. Even though all is done same way.

I'll keep your solution on a record for future. Anyways, it is probably too early for me to go into Windows 8 - VS2012 environment. I'll wait ~ half-year more, don't want to stumble into some problems.

Oleg

0 Kudos
Vladimir_P_1234567890
340 Views

I've filled a bug against studio 2012 https://connect.microsoft.com/VisualStudio/feedback/details/779029/unexpected-fatal-error-c1004-message

It was confirmed but deffered for later version.

--Vladimir 

0 Kudos
Reply