Thread Subject: Random 'make' error when using RTW for xPC

Subject: Random 'make' error when using RTW for xPC

From: Thomas Marullo

Date: 16 Nov, 2007 13:54:46

Message: 1 of 2

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.

Subject: Random 'make' error when using RTW for xPC

From: kausalya

Date: 14 Aug, 2009 09:09:04

Message: 2 of 2

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.

Tags for this Thread

Everyone's Tags:

xpc

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
xpc Helen Chen 5 Dec, 2007 14:40:00
rssFeed for this Thread
 

MATLAB Central Terms of Use

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.

Contact us at files@mathworks.com