ld cannot find -lcuda, when compiling cuda programs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When trying to compile NVidia GPU computing SDK samples with CUDA toolkit 3.0, the build process stops with
make[1]: Entering directory `/home/
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
make[1]: *** [../../
make[1]: Leaving directory `/home/
make: *** [src/threadMigr
However, libcuda.so can be found under /usr/lib/
Changed in nvidia-graphics-drivers (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in nvidia-graphics-drivers (Ubuntu): | |
status: | Invalid → Incomplete |
Changed in nvidia-graphics-drivers (Ubuntu): | |
status: | Expired → Confirmed |
You probably need to build it with -L/usr/ lib/nvidia- current to tell ld to search that path. This can generally be done in the Makefile for the application you are building.