I'm actually working with CUDA to link .c and .cu files with nvcc, but since nvcc just treats .c files like C code and .cu files like C++ code I thought this question would be OK for this board. So everything compiles but when it goes to link I get "undefined reference" for functions in .cu files accessed by main.c. Suppose I have main.c and file.cu:
As you can see I've tried to use 'extern "C"' to get the compiler to behave but the same errors persist. Is there anything else I could be missing? Thanks!