I got a file a.cu compile with -cuda
The file a.cu contains calls to cutil functions
nvcc -cuda -I $(SDK)/common/inc a.cu
and then compiled with gcc
gcc -o a.cu.o -I $(SDK)/common/inc -L $(CUDA)/lib -lcudart -L $(SDK)/lib -lcutil a.cu.c
everything looks fine to me, but it doesn’t work with error messages “undefined reference” to those cutil functions.
I couldn’t understand why can’t the compiler find the cutil functions. Does any see any problems with the way i compile? I’m using Fedora Core 8 btw.