Using make to get a debuggable executable /usr/bin/ld: cannot find -lcutilD

When I run the make file to debug such as:

make dbg=1

I get an error like this:

/usr/bin/ld: cannot find -lcutilD
collect2: ld returned 1 exit status
make: *** […/…/bin/linux/debug/matrixMul] Error 1

It cannot find the file -lcutilD. I am running Ubuntu 64 bit. I am not sure what is going on. I performed a search for -lcutilD and came up with nothing. That does not mean it is not there, it just means that a file with that name is not there. It could part of a library file with a different name.

I know this has been discussed on the forum before. I am unsure if the 64 bit Ubuntu version of Linux was addressed. I want to step through some of the programs that are built with the makefile and I know that

make dbg=1

can do it. I just do not know how to let the compiler file the file: -lcutilD.

Any help appreciated.


You need to run make dbg=1 in the NVIDIA_GPU_Computing_SDK/C/common directory.

You probably should go and teach yourself about GNU make. It seems you keep tripping over the same problems because you are treating make as some magical black box. It really isn’t complex if you can understand what the Makefiles do…