Visual studio 使用ITK和VTK时出现Visual Studio错误

Visual studio 使用ITK和VTK时出现Visual Studio错误,visual-studio,vtk,itk,Visual Studio,Vtk,Itk,我正在visual studio 2015中做一个项目,当我包含ITK并编译所有内容时,出现了一些错误 Error C3861 '_beginthreadex': identifier not found Error C2039 '_time64': is not a member of '`global namespace'' Error C3861 '_time64': identifier not found Erro

我正在visual studio 2015中做一个项目,当我包含ITK并编译所有内容时,出现了一些错误

    Error   C3861   '_beginthreadex': identifier not found

    Error   C2039   '_time64': is not a member of '`global namespace''  
    Error   C3861   '_time64': identifier not found     
    Error   C3861   '_mktime64': identifier not found   
    Error   C3861   '_mktime64': identifier not found   
    Error   C3861   '_gmtime64_s': identifier not found 
    Error   C3861   '_localtime64_s': identifier not found  
    Error   C3861   '_mktime64': identifier not found   
    Error   C3861   '_localtime64_s': identifier not found  
    Error   C3861   '_gmtime64_s': identifier not found 
    Error   C2039   '_time64': is not a member of '`global namespace''
    Error   C3861   '_time64': identifier not found 
    Error   C3646   'm_nLastAnimTime': unknown override specifier   
    Error   C4430   missing type specifier - int assumed. Note: C++ does not 
    support default-int 
    Error   C3646   'm_ActiveTime': unknown override specifier  
    Error   C4430   missing type specifier - int assumed. Note: C++ does not 
     support default-int    
    Error   C3646   'm_clkLastTime': unknown override specifier 
但是我尝试将
visualstudio/VC/Include
visualstudio/VC/bin
包含到
附加Include目录
,但仍然显示相同的错误。 我还尝试在
配置属性
中更改MFC的
使用和
c++->代码生成->运行时库

我也提到了链接,但我的问题没有解决

所以我想可能是因为vs2015安装问题,并试图在
Visualstudio 2017
中使用VTK和ITK构建一个新项目,在那里也发生了同样的错误。我已经被困了几个星期,有人能为我的问题提供解决方案吗?

您是使用VTK和VTK构建的吗?您是否遵循以下步骤来构建自己的应用程序?使用CMake是使用ITK和/或VTK的唯一受支持的方法

如果无法使用CMake,一种解决方法是使用CMake构建hello world示例,然后将包含路径和库列表复制到主Visual Studio应用程序中。

是否使用该方法构建ITK和VTK?您是否遵循以下步骤来构建自己的应用程序?使用CMake是使用ITK和/或VTK的唯一受支持的方法

如果不能使用CMake,一种解决方法是使用CMake构建hello world示例,然后将包含路径和库列表复制到主Visual Studio应用程序