E:\Codes\WB\Matlab_CUDA-1.1a\Matlab_CUDA_1.1>mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n?
Select a compiler:
[1] Lcc-win32 C 2.4.1 in E:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
[2] Microsoft Visual C++ 2005 in E:\Program Files\Microsoft Visual Studio 8
[0] None
Compiler: 1
Please verify your choices:
Compiler: Lcc-win32 C 2.4.1
Location: E:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
Are these correct [y]/n? y
Trying to update options file: C:\Documents and Settings\Ke\Application Data\MathWorks\MATLAB\R200
From template:� � � � � � � E:\PROGRA~1\MATLAB\R2008a\bin\win32\mexopts\lccopts.bat
Done . . .
� Warning: The MATLAB C and Fortran API has changed to support MATLAB
� � � � � variables with more than 2^32-1 elements.� In the near future
� � � � � you will be required to update your code to utilize the new
� � � � � API. You can find more information about this at:
� � � � � http://www.mathworks.com/support/solutions…lution=1-5C27B9
� � � � � Building with the -largeArrayDims option enables the new API.
E:\Codes\WB\Matlab_CUDA-1.1a\Matlab_CUDA_1.1>mex fft2_cuda.c -IG:\CUDA\include -LG:\CUDA\lib -lcud
Writing library for fft2_cuda.mexw32
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cudaMalloc@8
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cudaMemcpy@1
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cufftPlan2d@
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cufftExecC2C
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cufftDestroy
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to ‘_cudaFree@4’
� E:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Link of ‘fft2_cuda.mexw32’ failed.