Undefined reference problem using Nsight

Hi,

I found a program in github and it compiles fine with its own makefile. However, when I tried to import the project to Nsight and used the makefile generated automatically by Nisght, an undefined reference occurred in the stage of linking. The error information shows below. Can you point out where goes wrong?
Thanks!


Building target: emTimeTest
Invoking: NVCC Linker
/usr/local/cuda-8.0/bin/nvcc --cudart static -L"/home/ubuntu/emTimeTest/Debug/lib" --relocatable-device-code=false -gencode arch=compute_50,code=compute_50 -gencode arch=compute_50,code=sm_50 -link -o “emTimeTest” ./source/Test.o ./lib/barrier.o ./lib/component.o ./lib/cudaCommon.o ./lib/cudaFolds.o ./lib/cudaGmm.o ./lib/cudaMVNormal.o ./lib/cudaWrappers.o ./lib/datFile.o ./lib/gmm.o ./lib/kmeans.o ./lib/linearAlgebra.o ./lib/parallelGmm.o ./lib/seqGmm.o ./lib/util.o
./lib/cudaGmm.o: In function cudaFit': /home/ubuntu/emTimeTest/Debug/../lib/cudaGmm.c:42: undefined reference to gpuGmmFit’
makefile:63: recipe for target ‘emTimeTest’ failed
./lib/cudaWrappers.o: In function gpuGmmLogLikelihood(unsigned long, unsigned long, double const*, double*)': /home/ubuntu/emTimeTest/Debug/../lib/cudaWrappers.cu:132: undefined reference to cudaGmmLogLikelihoodAndGammaNK(cudaDeviceProp*, unsigned long, unsigned long, double const*, double*, double const*, double*)’