Question

I have trouble getting the CUSP (version 0.2) library running under windows7 x64 and visual studio 2008. When including for example:

#include <cusp/hyb_matrix.h>

i get the following error:

error C2039: 'hypotf' : is not a member of '`global namespace'' c:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include\cusp\complex.h  742

Anyone ever encountered this error or know how to get it running?

Was it helpful?

Solution

POSIX standard math libraries provide hypot and hypotf. Microsoft's libraries define _hypotand hypotf. You will probably have to patch cusp/complex.h to work around it. You might also want to post a bug report with the CUSP developers here, this seems like something they would want to fix.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top