Visual Studio 2015 Compilation Error, string literals
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The following compile error
Severity Code Description Project File Line Error C3688 invalid literal suffix 'PRIdword'; literal operator or literal operator template 'operator ""PRIdword' not found vtkCommonCore G:\Toolkits\VTK\VTK-6.2.0\Common\Core\vtkWin32ProcessOutputWindow.cxx 98 Error C2664 'int sprintf(char *const ,const char *const ,...)': cannot convert argument 2 from 'DWORD' to 'const char *const ' vtkCommonCore G:\Toolkits\VTK\VTK-6.2.0\Common\Core\vtkWin32ProcessOutputWindow.cxx 99
arises in my Visual Studio 2015 RC installation.
This references // Construct the executable name from the process id, pointer to // this output window instance, and a count. This should be unique. sprintf(exeName, "vtkWin32OWP_%"PRIdword"%p%u.exe", GetCurrentProcessId(), this, this->Count++);
it should be // Construct the executable name from the process id, pointer to // this output window instance, and a count. This should be unique. sprintf(exeName, "vtkWin32OWP_%" PRIdword "%p%u.exe", GetCurrentProcessId(), this, this->Count++);