Matlab R2009b and cuda nvcc compiling problem


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 -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 ‘’ failed.

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

I tried all the 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”][/post] , 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" -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.
is there any reason why this code compiles with no errors and it doesn’t work?
Thank you