I am compiling various files using something on the lines of:
nvcc file.cu -c -o file.o
then I link them using:
nvcc *.o -o a.out
and I get that a whole pile of functions I have already defined are supposedly undefined. What’s going on here?
I am compiling various files using something on the lines of:
nvcc file.cu -c -o file.o
then I link them using:
nvcc *.o -o a.out
and I get that a whole pile of functions I have already defined are supposedly undefined. What’s going on here?
You should get rid of “-o” in the first compile command.
In theory, that shouldn’t work, since I’m passing all the object files manually. Sure enough, it doesn’t work.