JCuda 0.5.5 on Mac OS X error

Hello,

I’ve tried to create the libraries for Mac OS X with cmake, but an error appears when I try it.

I’ve succesfully built the 0.5.0 version before, but this one doesn’t work :\

The error is:JCuda-All-0.5.5-src/CommonJNI/src/PointerUtils.hpp:434:89: error:
cannot pass object of non-POD type ‘std::string’
(aka ‘basic_string’) through variadic function; call will abort at
runtime [-Wnon-pod-varargs]
…%d (%s) setting value %p
", i, getToString(env, p), localPointer**);
^
1 error generated.
make[2]: *** [CommonJNI/CMakeFiles/CommonJNI.dir/src/JNIUtils.cpp.o] Error 1
make[1]: *** [CommonJNI/CMakeFiles/CommonJNI.dir/all] Error 2
make: *** [all] Error 2

Hello

Sorry, yes, this has been reported for Linux as well. This is ONLY used for debugging outputs (and Visual Sudio compiles it without complaining). You may safely comment out all lines that involve a call to ‘getToString’. I have already updated the code locally, but not yet in the package on the website (not sure whether I should consider this as a ‘new version’, since it does not affect the functionality in any way). However, I’ll probably upload the ZIP with the updated source soon.

bye
Marco

Ok, thank you!

I have just uploaded the updated source code. Since this was mainly an issue with the compilation, it is not considered as a new version. Hopefully it works now, since I can not test this on Windows, but since I removed the calls that it complained about, everything should be fine.