David Mertens wrote:
Sorry for the rapid-fire. I'm up late and the ideas are only trickling out.

It appears that the code doesn't think __cplusplus is defined. That is odd. nvcc claims (or, it used to) that it always runs the code through a C++ compiler at the end of the day, so why it wouldn't have __cpluplus defined is beyond me.

David
Compiler flag on cmd line? file name auto detection (.c vs .cc or .cpp)? Read the compilers manual or google it. Also your XS module needs to use PERL_NO_GET_CONTEXT for efficiency.

your file is called "Minimal.c", per http://sbel.wisc.edu/Courses/ME964/2008/Documents/nvccCompilerInfo.pdf your file will be compiled in regular C mode. Try a (untested)

#ifndef __cplusplus #error c++ is not defined
#endif

for debugging.

Reply via email to