I am trying to link these object files to a command:
g++ NT_FFT_Decomp.o T_FFT_Decomp.o SNT_FFT_Comp.o ST_FFT_Comp.o VNT_FFT_Comp.o VT_FFT_Comp.o CUDA_FFT_Comp.o Globals.o main.o \ -L/media/wiso/Programs/Setups/CUDA/include -lcuda -lcudart -lpthread -o DevicesTest
/ Media / Wiso / Programs / Setups / CUDA
is my cuda installation directory. and my LD_LIBRARY_PATH looks like this:
Irrelevant:/media/wiso/Programs/Setups/CUDA/lib64:/media/wiso/Programs/Setups/CUDA/lib:Irrelevant
the command produces this error message:
/usr/bin/ld: cannot find -lcuda /usr/bin/ld: cannot find -lcudart
removing -lcuda and -lcudart generates an undefined link to cuda function errors. A.
how can i tie this right ??
Prowi source share