Looking for a sample Makefile to compile and link multiple cu and cpp files into a shared module

Looks like compiling and linking multiple .cu and .cpp file into a shared module ( or executable) is still not possible. Tried various nvcc options such as “-dc” “-dlink” to generate the object module and link that with g++ objects. There is always some not found variables.

It’s possible.





If you want a specific answer, I suggest providing a short, complete (all the source files, and the makefile), specific example, and show the failing compile output.