Visual Studio C ++代码获得重新定义错误

时间:2018-12-12 17:01:03

标签: c++ uwp

系统崩溃后,我重新安装了VS并提出了解决方案。现在,它在Microsoft代码中得到一个重新定义错误。下面的示例输出:

2>Compressor.xaml.cpp
....
2>c:\program files (x86)\windows kits\10\include\10.0.17763.0\winrt\windows.foundation.numerics.h(349): warning C4099: 'Windows::Foundation::Numerics::Rational': type name first seen using 'class' now seen using 'struct' (compiling source file Compressor.xaml.cpp)
2>c:\program files (x86)\windows kits\10\include\10.0.17763.0\winrt\windows.foundation.numerics.h(567): error C2371: 'ABI::Windows::Foundation::Numerics::Rational': redefinition; different basic types (compiling source file Compressor.xaml.cpp)
2>c:\program files (x86)\windows kits\10\include\10.0.17763.0\winrt\windows.foundation.numerics.h(349): note: see declaration of 'ABI::Windows::Foundation::Numerics::Rational' (compiling source file Compressor.xaml.cpp)
2>c:\program files (x86)\windows kits\10\include\10.0.17763.0\winrt\windows.foundation.numerics.h(349): warning C4099: 'Windows::Foundation::Numerics::Rational': type name first seen using 'class' now seen using 'struct' (compiling source file CommonToolBar.xaml.cpp)

仅供参考:我在代码中没有使用理性。

在解决此问题之前,该项目已无效。有想法吗?

0 个答案:

没有答案