error first time CUDA in matlab

I have finished installing Visual C++ express edition so I tried testing CUDA with MATLAB by using this command…

nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart

but the following error occurred:

nvcc fatal : Unknown option ‘oC:\Users\user\AppData\Local\Temp\mex_5mp5KZ\Szeta.obj’ C:\PROGRA~1\MATLAB\R2008A\BIN\NVMEX.PL: Error: Compile of ‘Szeta.cu’ failed. ??? Error using ==> nvmex at 206 Unable to complete successfully.

How can we fix this error? Thanks.

No clue if it is necessary, but have you run mex -setup?

Yep. We’ve already tried mex setup…

we selected visual C++ 2005 express edition

…the error is still there

well, then it would be nice to know what line 206 of nvmex is trying to do. I am personally using linux so I cannot check.

[url=“http://forums.nvidia.com/index.php?showtopic=66961”]http://forums.nvidia.com/index.php?showtopic=66961[/url]

matlab 2008a : should use this version .bat files~~