Path: news.mathworks.com!not-for-mail
From: "Thomas Marullo" <tmm3@lehigh.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Random 'make' error when using RTW for xPC
Date: Fri, 16 Nov 2007 13:54:46 +0000 (UTC)
Organization: Lehigh University
Lines: 32
Message-ID: <fhk7f6$182$1@fred.mathworks.com>
Reply-To: "Thomas Marullo" <tmm3@lehigh.edu>
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 1195221286 1282 172.30.248.38 (16 Nov 2007 13:54:46 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 Nov 2007 13:54:46 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1142235
Xref: news.mathworks.com comp.soft-sys.matlab:437920



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.