我正在尝试编译并构建一个旧项目(VTK V5.10.1)。我做了cmake
并在Visual Studio 2017中获得了该项目。当尝试ALL_BUILD
解决方案时,我收到190个错误!其中一些是:
Severity Code Description Project File Line Suppression State
Error C2375 'lfind': redefinition; different linkage vtktiff C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_search.h 185
和
Severity Code Description Project File Line Suppression State
Error C1189 #error: Macro definition of snprintf conflicts with Standard Library function declaration vtklibxml2 C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h 1927
和
Severity Code Description Project File Line Suppression State
Error C2678 binary '<<': no operator found which takes a left-hand operand of type 'std::ostream' (or there is no acceptable conversion) vtkCommon C:\Users\VraNegar\Desktop\vtk-v5.10.1\Common\vtkOStreamWrapper.cxx 60
和
Severity Code Description Project File Line Suppression State
Error C2678 binary '==': no operator found which takes a left-hand operand of type 'std::basic_istream<char,std::char_traits<char>>' (or there is no acceptable conversion) vtkIO C:\Users\VraNegar\Desktop\vtk-v5.10.1\IO\vtkEnSightGoldBinaryReader.cxx 4008
是否有任何问题阻止在Windows 10和Visual Studio 2017上编译旧项目?