<div dir="ltr"><div>Hi Andrew,</div><div><br></div><div>Probably the best way to approach this is to find out what preprocessor symbol is causing the problem, tbb_config.h line 545 is as follows:</div><div><br></div><div>#if __GLIBC__==2 && __GLIBC_MINOR__==3 ||  (__APPLE__ && ( __INTEL_COMPILER==1200 && !TBB_USE_DEBUG))<br></div><div><br></div><div>You can print the values of these symbols (to find out which one is defined as something other than a number) with the same technique used for the __LINE__ example on the following MSDN web page:</div><div><br></div><a href="https://msdn.microsoft.com/en-us/library/x7dkzch2.aspx">https://msdn.microsoft.com/en-us/library/x7dkzch2.aspx</a><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 5, 2016 at 11:25 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi All</div><div><br></div><div>Build:</div><div>   Windows 10, compiler VS_12 (2013), 64-bit, Anaconda Python 2.7.</div><div>   TBB is found and the paths are correct.</div><div><br></div><div>The release version builds without errors.</div><div><br></div><div>If I build the Debug version with Python wrapping set to "ON" I get the error:</div><div>   "c:\intel\tbb\tbb44_20160128oss\include\tbb\tbb_config.h(545) : fatal error C1017: invalid integer constant expression", this particular error normally relates to an expression in an #if directive that either did not exist or did not evaluate to a constant.</div><div><br></div><div>This occurs when the following are being built:</div><div>   "Utilities\PythonInterpreter\vtkPythonInterpreter"</div><div>   "Utilities\PythonInterpreter\vtkPythonInteractiveInterpreter"</div><div>   "Parallel\MPI4Py\vtkMPI4PyCommunicator"</div><div>   "Wrapping\PythonCore\PyVTKObject"</div><div>   "Wrapping\PythonCore\vtkPythonCommand"</div><div>   "Wrapping\PythonCore\vtkPythonUtil"</div><div><br></div><div>I built one of the TBB examples using the FindTBB.cmake in VTK for both vs_12 (2013) and vs_14 (2015) with no errors or warnings. So tbb/tbb_config.h does not seem to be causing the problem. Lines 290-296 set TBB_USE_DEBUG appropriately in tbb/tbb_config.h depending upon whether it is a Debug or Release build.</div><div>So I think the problem relates to something in VTK.</div><div><br></div><div>Coming back to VTK, I looked through the CMakeLists.txt files and couldn't see any definitions that could be causing this error for the python wrapping.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Regards</div><span class=""><font color="#888888"><div><br></div><div>Andrew</div><div><br></div><div><br></div>-- <br><div>___________________________________________<br>Andrew J. P. Maclean<br></div></font></span></div>
<br></blockquote></div><br></div></div></div>