I am using Simulink and RTW to build and download a model to
the xPC. I am using R2007a. Occasionally, I will get this
error when I try to build the model:
C:\Documents and Settings\user\My
Documents\MATLAB\globalcountersimulator\globalcountersimulator_xpc_rtw>echo
The make command returned an
error of 2
The make command returned an error of 2
C:\Documents and Settings\uer\My
Documents\MATLAB\globalcountersimulator\globalcountersimulator_xpc_rtw>An_error_occurred_during_the_call_to
_make
'An_error_occurred_during_the_call_to_make' is not
recognized as an internal or external command,
operable program or batch file.
But if I hit 'build' again, without changing any files, it
will work. I don't understand why this is happening.
Subject: Random 'make' error when using RTW for xPC
Even I get this error and the model doesn't build at all.
I could build the same model prior to have installed another real time target scale-rt. I guess the scale-rt installation would have modified certain rtw files in the root but how do I debug it to find out the exact problem?
"Thomas Marullo" <tmm3@lehigh.edu> wrote in message <fhk7f6$182$1@fred.mathworks.com>...
> I am using Simulink and RTW to build and download a model to
> the xPC. I am using R2007a. Occasionally, I will get this
> error when I try to build the model:
>
> Creating library globalcountersimulator.lib and object
> globalcountersimulator.exp
> globalcountersimulator.obj : error LNK2001: unresolved
> external symbol _rt_InitInfAndNaN
> xpctarget.obj : error LNK2001: unresolved external symbol
> _rt_InitInfAndNaN
> rt_logging.obj : error LNK2001: unresolved external symbol
> _rtInf
> globalcountersimulator.dll : fatal error LNK1120: 2
> unresolved externals
> NMAKE : fatal error U1077: 'link' : return code '0x460'
> Stop.
>
> C:\Documents and Settings\user\My
> Documents\MATLAB\globalcountersimulator\globalcountersimulator_xpc_rtw>echo
> The make command returned an
> error of 2
> The make command returned an error of 2
>
> C:\Documents and Settings\uer\My
> Documents\MATLAB\globalcountersimulator\globalcountersimulator_xpc_rtw>An_error_occurred_during_the_call_to
> _make
> 'An_error_occurred_during_the_call_to_make' is not
> recognized as an internal or external command,
> operable program or batch file.
>
> But if I hit 'build' again, without changing any files, it
> will work. I don't understand why this is happening.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.