Skip to content

Fixing fatal error C1017 in VC12 when TBB and Python are enabled in a Debug build.

When building with VC12 (2013) in Debug mode with Intel TBB and Python enabled, the following error is generated:
fatal error C1017: invalid integer constant expression in tbb_config.h

This seems to be caused by the line # define _DEBUG in Utilities/Python/vtkPython.hline 90.
_DEBUG was undefined on line 52 and then redefined on line 90.
Changing line 90 to # define _DEBUG 1 seems to fix this.

Merge request reports