I have the following cuda file (just for testing purposes):
Compiling this on MSVC2005 with nvcc gives me the following error:
Now one of the topics on these forums says that to use C++ files it needs to be in a separate .cpp file use linking with extern “C” to get to them. But isn’t this somehow weird? My cuda files can happily use templates, classes and all kinds of fancy C++ constructs yet the compiler aborts; crashes!! even on a standard template library?
Will this be fixed? Or is this an error-by-design?