I have a problem with the Matlab example for cuda, which I downloaded from nvidia.
First of all some details about my computer:
Ubuntu 9.04 64bit
Matlab R2009b 64bit
When I try to run the makefile I get the following error:
/usr/local/matlab2009b/bin/mex CFLAGS=’-fPIC -D_GNU_SOURCE -pthread -fexceptions’ COPTIMFLAGS=’-O3 -funroll-loops -msse2’ fft2_cuda.c \
-I/usr/local/cuda/include -L/usr/local/cuda/lib64 -lcufft -Wl,-rpath,/usr/local/cuda/lib64
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
mex: link of ’ “fft2_cuda.mexa64”’ failed.
make: *** [fft2_cuda.mexa64] Error 1
Can anyone tell me what I’m doing wrong?
CUDA itself works perfectly and I already compiled a cuda mex file which I created myself with success using the nvmex directly (without makefile) .
I really would appreciate any help!