当我尝试在调试 64 位配置中使用 VS 2010 在 64 位 Windows 7 上构建我的项目时,我收到此错误以及其他两个错误。
error: linkage specification is incompatible with previous "hypot" in math.h line 161
error: linkage specification is incompatible with previous "hypotf" in math.h line 161
error: function "abs(long long)" has already been defined in math_functions.h line 534
我在 32 位版本中没有收到这些错误。此外,64 位版本在 VS2008 中工作。这个问题是否有适当的解决方法,还是我应该等到 nvcc 支持 VS 2010 编译器?