Visual Studio 使用 ITK 和 VTK 时出错
Visual Studio error when ITK and VTK is used
我正在 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
但我尝试将 Visual studio/VC/Include
和 Visual Studio/VC/bin
包含到 Additional Include Directories
,它仍然显示相同的错误。
我也尝试更改 Use of MFC
和 c++ ->code generation ->Runtime Library in
configuration properties
。
我也提到了thislink,但是我的问题没有解决。
所以我认为可能是因为 vs2015 安装问题,并尝试在 Visualstudio 2017
中使用 VTK 和 ITK 构建一个新项目,其中也有相同的错误 occurring.I 已经卡住了数周,谁能解决我的问题?
您是否正在使用 this procedure to build ITK and VTK? Are you following this guide 构建您自己的应用程序?使用 CMake 是唯一支持的使用 ITK 的方式 and/or VTK。
如果您不能使用 CMake,解决方法是使用 CMake 构建一个 hello world 示例,然后将包含路径和库列表复制到您的主 Visual Studio 应用程序。
我正在 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
但我尝试将 Visual studio/VC/Include
和 Visual Studio/VC/bin
包含到 Additional Include Directories
,它仍然显示相同的错误。
我也尝试更改 Use of MFC
和 c++ ->code generation ->Runtime Library in
configuration properties
。
我也提到了thislink,但是我的问题没有解决。
所以我认为可能是因为 vs2015 安装问题,并尝试在 Visualstudio 2017
中使用 VTK 和 ITK 构建一个新项目,其中也有相同的错误 occurring.I 已经卡住了数周,谁能解决我的问题?
您是否正在使用 this procedure to build ITK and VTK? Are you following this guide 构建您自己的应用程序?使用 CMake 是唯一支持的使用 ITK 的方式 and/or VTK。
如果您不能使用 CMake,解决方法是使用 CMake 构建一个 hello world 示例,然后将包含路径和库列表复制到您的主 Visual Studio 应用程序。