error: linkage specification is incompatible with previous "hypot"

When i try to build my project on a 64 bit Windows 7 using VS 2010 in Debug 64 bit configuration I get this error along with two other errors.

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

I do not get these errors in the 32 bit build. Also, the 64 bit build worked in VS2008. Is there a proper work around to this problem or should I just wait till nvcc supports VS 2010 compiler?

Thanks.

Same problem here!!! No help??? :verymad:

Same problem here!!! No help??? :verymad:

  1. check if you are using the old cuda path “C:\CUDA” inside VS2010 default includes macro. If so, delete the VS configuration xml inside user/app… folder.

  2. use the compiler inside VS2008

  1. check if you are using the old cuda path “C:\CUDA” inside VS2010 default includes macro. If so, delete the VS configuration xml inside user/app… folder.

  2. use the compiler inside VS2008