Can not find lcuda when compiling deviceQueryDrv with default MakeFile

Hi, I’m new with CUDA and installing it in Linux, I have installed the CUDA toolkit and the CUDA SDK, but when I run the makefile, it can not build the deviceQueryDrv because it can not find lcuda. I know that libcuda exists, I think there is a problem with the default makefile of the SDK, Please Help me! I don’t know what to do.
This is what appears in the console

make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/common' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/common' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/common' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/common’
make -C src/3DFD/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/3DFD' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/3DFD’
make -C src/dxtc/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/dxtc' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/dxtc’
make -C src/scan/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/scan' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/scan’
make -C src/asyncAPI/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/asyncAPI' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/asyncAPI’
make -C src/simpleTexture/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/simpleTexture' make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/simpleTexture’
make -C src/deviceQueryDrv/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/deviceQueryDrv' /usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannot find -lcuda collect2: ld returned 1 exit status make[1]: *** [../../bin/linux/release/deviceQueryDrv] Error 1 make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/deviceQueryDrv’
make: *** [src/deviceQueryDrv/Makefile.ph_build] Error 2

I’m with 3.0-beta SDK, so I cannot check it directly, but - if I remember it correctly, the CUDA path was in some way hard-coded in SDK makefile(s) in older SDK versions. So if you know at least basics of make syntax, you may wish to check makefiles, and fix it yourself.

libcuda should be installed in a standard system path, like /usr/lib by default, and it comes in the driver package. There should be no compiler arguments necessary for it to be found by default. So if a build that needs libcuda is failing, it probably means that either you haven’t got a driver which supports CUDA installed, or you are using a driver package which hides libcuda in a non-standard place, or you have a seriously broken build system, Take you pick.