Errors with CUDA 1.1 MATLAB 2008 Plugin Unresolved external symbol linker errors

Hello,

I’m using the MATLAB 2008 plugin for CUDA 1.1 with Visual C++ 2005 Prof Edition SP1 on a Windows Server 2003 x64 SP2 machine. When I try to use the nvmex command with szeta.cu:

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

I get the following set of errors:

Szeta.obj
Creating library C:\DOCUME~1\bains\LOCALS~1\Temp\mex_hIKvz1\templib.x and object C:\DOCUME~1\bains\LOCALS~1\Temp\mex_hIKvz1\templib.exp
Szeta.obj : error LNK2019: unresolved external symbol __imp_frexp referenced in function frexpf
Szeta.obj : error LNK2001: unresolved external symbol _fltused
Szeta.obj : error LNK2019: unresolved external symbol __imp_ldexp referenced in function ldexpf
Szeta.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
Szeta.obj : error LNK2019: unresolved external symbol __security_cookie referenced in function __device_stub__Z12non_linear_2PfP6float2S1_S1_fi
Szeta.obj : error LNK2019: unresolved external symbol __security_check_cookie referenced in function __device_stub__Z12non_linear_2PfP6float2S1_S1_fi
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
Szeta.mexw64 : fatal error LNK1120: 7 unresolved externals

C:\PROGRA~1\MATLAB\R2008A\BIN\NVMEX.PL: Error: Link of ‘Szeta.mexw64’ failed.

Also, I am using the new MATLAB 2008 scripts.

Does anyone know how to fix this problem?

Thanks.