When I try to run or compile a model which contains an embedded MATLAB block, which calls the FFT routine, I receive the following error:
### Linking ... link.exe /nologo /dll /OPT:NOREF /export:mexFunction /OUT:EmbMtCppFail_sfun.dll /map:"EmbMtCppFail_sfun.map" "d:\applications\matlab704\stateflow\c\mex\lib\win32\sfc_mexmsvc71.lib" "d:\applications\matlab704\stateflow\c\debugger\lib\win32\sfc_debugmsvc71.lib" "D:\Applications\MATLAB704\extern\lib\win32\microsoft\msvc50\libmx.lib" "D:\Applications\MATLAB704\extern\lib\win32\microsoft\msvc50\libmex.lib" "D:\Applications\MATLAB704\extern\lib\win32\microsoft\msvc50\libmat.lib" "D:\Applications\MATLAB704\extern\lib\win32\microsoft\msvc50\libfixedpoint.lib" "D:\Applications\MATLAB704\extern\lib\win32\microsoft\msvc50\libut.lib" "d:\applications\matlab704\toolbox\dspblks\lib\win32\dsp_dyn_rt_vc.lib" @EmbMtCppFail_sfun.mol Creating library EmbMtCppFail_sfun.lib and object EmbMtCppFail_sfun.exp c7_EmbMtCppFail.obj : error LNK2019: unresolved external symbol "void __cdecl MWDSP_DblLen_TRIG_Z(struct creal_T *,int)" (?MWDSP_DblLen_TRIG_Z@@YAXPAUcreal_T@@H@Z) referenced in function "void __cdecl c7_fft(double *,struct creal_T *)" (?c7_fft@@YAXPANPAUcreal_T@@@Z) c7_EmbMtCppFail.obj : error LNK2019: unresolved external symbol "void __cdecl MWDSP_R2DIT_TRIG_Z(struct creal_T *,int,int,int,int)" (?MWDSP_R2DIT_TRIG_Z@@YAXPAUcreal_T@@HHHH@Z) referenced in function "void __cdecl c7_fft(double *,struct creal_T *)" (?c7_fft@@YAXPANPAUcreal_T@@@Z) c7_EmbMtCppFail.obj : error LNK2019: unresolved external symbol "void __cdecl MWDSP_FFTInterleave_BR_D(struct creal_T *,double const *,int,int)" (?MWDSP_FFTInterleave_BR_D@@YAXPAUcreal_T@@PBNHH@Z) referenced in function "void __cdecl c7_fft(double *,struct creal_T *)" (?c7_fft@@YAXPANPAUcreal_T@@@Z) EmbMtCppFail_sfun.dll : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: 'link.exe' : return code '0x460' Stop.
Best Answer