cuda mex file compilation on 64 bit architecture

Hi,
please can anybody tell me how can I compile a cuda mex file with visual studio 2010 windows 7 64bit matlab r2011b cuda 4.0.
Since I have also Visual studio 2008 installe I tried to use this configuration The Official NVIDIA Forums | NVIDIA
but I always obtain this error:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN/…/…/VC/\INCLUDE\crtdefs.h(490): error: invalid redeclaration of type name “size_t”

Any ideas?
Thanks in advance.

Hi,
I am having exactly the same problem. Any solution found so far?
thanks.

I usually compile a lib-file in visual studio. Then I make a Matlab wrapper mex-file and link the library when I compile the mex-file in Matlab.