Matlab R2009b and cuda nvcc compiling problem

Hello,

I’m having problems compiling the Matlab plugin 1.1 example with cuda 2.2 on Windows xp on macbook pro with Nvidia 8600M and VC 2008
In particular :

nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart
nvcc fatal : Unknown option ‘oC:\DOCUME~1\ADMINI~1\IMPOST~1\Temp\mex_kO2H12\Szeta.obj’

C:\PROGRA~1\MATLAB\R2009B\BIN\NVMEX.PL: Error: Compile of ‘Szeta.cu’ failed.

??? Error using ==> nvmex at 206
Unable to complete successfully.

I tried all the nvmex.pl and nvmexopt.bat on the forum pointing to the correct folder of VC 2008 but this is the best I could get.
I’m attaching the two I’m using.
Anyone can help me?
Thank you!!

Use [post=“0”]CUDA MEX - File Exchange - MATLAB Central , it will autogenerate a cuda_mex script not unlike the nvmex script, and you can compile with debug symbols with device emulation:

cuda_mex -g COMPFLAGS=“$COMPFLAGS -deviceemu” Szeta.cu -IC:\CUDA\include -LC:\CUDA\lib -lcufftemu

perfect! that works for compiling!!
but now new problems came up… I’m moving my code to windows from MacOSx for various reasons and the part of code that uses CUDA comes from a project posted on mathworks forum called cudaconv, which was developed and tested under mac environment. One of the requisites was “installing CUDA Kext” option.
Well,
is there any reason why this code compiles with no errors and it doesn’t work?
Thank you