I’ve just gotten a new Mac running OS X 10.7.3. I’ve installed CUDA 4.1 on it, and am trying to compile my software (which compiles fine on other computers). It first gets hundreds of warnings in CUDA header files. They all look like this:
/usr/local/cuda/include/surface_functions.h:127:55: warning: explicit
specialization cannot have a storage class
template<> __attribute__((unused)) static inline char surf1Dread(...
~~~~~~ ^
Finally it fails with the following error, also in a CUDA header file:
/usr/local/cuda/include/crt/host_runtime.h:158:12: error: exception
specification in declaration does not match previous declaration
extern int atexit(void(*)(void)) throw();
^
/usr/include/stdlib.h:147:16: note: previous declaration is here
extern "C" int atexit(void (*)(void));
What’s going on?
Peter