Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Random 'make' error when using RTW for xPC
Date: Fri, 14 Aug 2009 09:09:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 36
Message-ID: <h639jg$n19$1@fred.mathworks.com>
References: <fhk7f6$182$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250240944 23593 172.30.248.38 (14 Aug 2009 09:09:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 14 Aug 2009 09:09:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1862805
Xref: news.mathworks.com comp.soft-sys.matlab:563334


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.