CUDA Compilation Problem /usr/local/cuda/lib/libcudart.so: undefi

So here is the problem, I am trying to compile the template example from the NVIDIA_CUDA_SDK libraries, but I keep getting the following error:

[jcarson@vfmw-gr252h-udp1103537uds template]$ make emu=1

/usr/local/cuda/lib/libcudart.so: undefined reference to `__cxa_get_exception_ptr@CXXABI_1.3.1’

collect2: ld returned 1 exit status

make: *** […/…/bin/linux/emurelease/template] Error 1

I believe the installation was correct yet I am still getting this error and would love some help on it. I have tried looking at other forums with no luck at all. Please I could really use some help.

Thank you in advance

Which Linux distribution is this?
Which CUDA version did you install, and when was it downloaded?

Its Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

I downloaded CUDA Toolkit version 1.0 and I downloaded it a few days ago.

I just had a similar problem installing on RHEL5.

I was trying to use LD_LIBRARY_PATH settings instead of messing with ldconfig. I gave up and switched to using ldconfig and everything works for me now.

What I did:

echo /usr/local/cuda/lib > /etc/ld.so.conf.d/nvidia-cuda.conf

ldconfig

Then I openned a new terminal out of paranoia (I don’t know if you really need to), and then the sample programs would run.

edit: I just re-read your error and it’s differnent from mine, so what I did probably won’t help you…