Re: Apparent linkage conflicts with dVAR; dXSARGS; when compiled using nvcc

[email protected] (bulk88)
Newsgroups perl.xs
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.