Prev: Compile problem
Next: TYPE ERROR IN MATRIX ACCESS
From: David Pr�vost on 31 May 2007 10:57 I was getting this problem with Matlab 2007a : <http://www.mathworks.com/support/bugreports/details.html?rp=361994> .. I follow the instruction : I replace the genMakefileAndBuild.p (I didn't have the genMakefileAndBuild.m). I restart matlab. Try to compile once. Then I modified my file (important) and recompile several times and my bug was likely gone. But I retry to redo my bug so I return to my old genMakefileAndBuild.m file. My bug did return but I remplace for the second time the genMakefileAndBuild.m file with the one on the report bug post and I was still getting the error. By the way, if I compile twice, the second time it will compile correctly. Here the old error: Notice that the error doesn�t occur at the same line of the file genMakefileAndBuild Error building Real-Time Workshop target for block diagram ' xpcosc '. MATLAB error message: Error using ==> RTW.genMakefileAndBuild at 967 Error(s) encountered while building model " xpcosc ". Matlab output ### Compiling C:\MATLAB\R2007a\toolbox\rtw\targets\xpc\target\build\xpcblocks\includ e\xpcPCFunctions.c cl -Ot /c /O2 /nologo -DMODEL=xpcosc -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV= -DUSE_RTMODEL -DERT_CORE -D_MT -MT /wd4996 C:\MATLAB\R2007a\toolbox\rtw\targets\xpc\target\build\xpcblocks\includ e\xpcPCFunctions.c xpcPCFunctions.c lib /nologo /out:xpcruntime.lib xpcimports.obj xpcPCFunctions.obj ### Linking ... C:\MATLAB\R2007a\sys\perl\win32\bin\perl C:\MATLAB\R2007a\rtw\c\tools\mkvc_lnk.pl xpcosc.lnk xpcosc.obj rt_logging.obj rt_logging_mmi.obj rt_matrx.obj rt_printf.obj rtw_modelmap_utils.obj xpcosc_capi.obj xpcosc_data.obj xpctarget.obj link /NOLOGO /DLL /SUBSYSTEM:CONSOLE /DEF:xpcvcdll.def /Include:_malloc C:\MATLAB\R2007a\rtw\c\lib\win32\rtwlib_vc.lib xpcruntime.lib @xpcosc.lnk -out:xpcosc.dll Creating library xpcosc.lib and object xpcosc.exp xpcosc.obj : error LNK2019: unresolved external symbol _rt_InitInfAndNaN referenced in function _xpcosc_initialize xpctarget.obj : error LNK2001: unresolved external symbol _rt_InitInfAndNaN rt_logging.obj : error LNK2019: unresolved external symbol _rtInf referenced in function _rt_CreateLogVarWithConvert xpcosc.dll : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"c:\program files\microsoft visual studio 8\VC\BIN\link.EXE"' : return code '0x460' Stop. C:\Documents and Settings\dprevost\My Documents\MATLAB\xpcosc_xpc_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Documents and Settings\dprevost\My Documents\MATLAB\xpcosc_xpc_rtw>An_error_occurred_during_the_call_t o_make 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file. Here the new error with new genMakefileAndBuild.p file posted: Error building Real-Time Workshop target for block diagram 'xpcosc'. MATLAB error message: Error using ==> RTW.genMakefileAndBuild at 937 Error(s) encountered while building model "xpcosc". Matlab ouput : ### Compiling C:\MATLAB\R2007a\toolbox\rtw\targets\xpc\target\build\xpcblocks\includ e\xpcPCFunctions.c cl -Ot /c /O2 /nologo -DMODEL=xpcosc -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV= -DUSE_RTMODEL -DERT_CORE -D_MT -MT /wd4996 C:\MATLAB\R2007a\toolbox\rtw\targets\xpc\target\build\xpcblocks\includ e\xpcPCFunctions.c xpcPCFunctions.c lib /nologo /out:xpcruntime.lib xpcimports.obj xpcPCFunctions.obj ### Linking ... C:\MATLAB\R2007a\sys\perl\win32\bin\perl C:\MATLAB\R2007a\rtw\c\tools\mkvc_lnk.pl xpcosc.lnk xpcosc.obj rt_logging.obj rt_logging_mmi.obj rt_matrx.obj rt_printf.obj rtw_modelmap_utils.obj xpcosc_capi.obj xpcosc_data.obj xpctarget.obj link /NOLOGO /DLL /SUBSYSTEM:CONSOLE /DEF:xpcvcdll.def /Include:_malloc C:\MATLAB\R2007a\rtw\c\lib\win32\rtwlib_vc.lib xpcruntime.lib @xpcosc.lnk
|
Pages: 1 Prev: Compile problem Next: TYPE ERROR IN MATRIX ACCESS |