为什么我会得到'lfind':重新定义;不同的链接错误?

时间:2018-10-24 12:29:38

标签: cmake visual-studio-2017 vtk

我正在尝试编译并构建一个旧项目(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上编译旧项目?

0 个答案:

没有答案