DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0024234

occt master is not compiled by VC++ 2005 (vc8 32/64 bit TKBO)

Open CASCADEOCCT:Modeling Algorithmsclosed4 public notes

Search issues

Description

1>------ Build started: Project: TKBO, Configuration: Release Win32 ------
1>Compiling...
1>BOPAlgo_Builder_2.cxx
1>\\master\occ\products\occt-3rdparty\tbb30_018oss\include\tbb\critical_section.h(108) : error C3861: 'TryEnterCriticalSection': identifier not found
1>\\master\occ\products\occt-3rdparty\tbb30_018oss\include\tbb\mutex.h(37) : error C2365: 'TryEnterCriticalSection' : redefinition; previous definition was 'formerly unknown identifier'
1>\\master\occ\products\occt-3rdparty\tbb30_018oss\include\tbb\mutex.h(184) : error C3861: 'TryEnterCriticalSection': identifier not found
2>------ Build started: Project: TKDraw, Configuration: Release Win32 ------
1>\\master\occ\products\occt-3rdparty\tbb30_018oss\include\tbb\recursive_mutex.h(37) : error C2365: 'TryEnterCriticalSection' : redefinition; previous definition was 'formerly unknown identifier'
1>\\master\occ\products\occt-3rdparty\tbb30_018oss\include\tbb\recursive_mutex.h(192) : error C3861: 'TryEnterCriticalSection': identifier not found
1>Build log was saved at "file://d:\new-wok-test-2\occt\win32\vc8\obj\TKBO\BuildLog.htm"
1>TKBO - 5 error(s), 0 warning(s)

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 2
According to tbb support:
http://software.intel.com/en-us/forums/topic/289473

we should define _WIN32_WINNT on VS2005 (newer versions of PSDK define it implicitly but not VS2005) as it done in Standard_Mutex.cxx for example:
#if ((defined(_WIN32) || defined(__WIN32__)) && !defined(_WIN32_WINNT))
  #define _WIN32_WINNT 0x0400
#endif
02Commenter 2
Fix pushed to branch CR24234 (contains also fixes for building by VS 2013), please review.
03Commenter 2
Patch has been reviewed without remarks.
Please test.
04Author
Compilation of fix has been tested on all configuration of VS

Related records