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 http://forums.nvidia.com/index.php?showtopic=98319&pid=595371&mode=threaded&start=#entry595371http://www.cs.ucf.edu/~janaka/gpu/index.htm
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.