Fatal error while building Simulink model with xPC Target blocks

3 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2013 年 12 月 9 日
回答済み: MathWorks Support Team 2013 年 12 月 9 日
Why do I receive a fatal error as below when I try to build a Simulink  model with xPC Target blocks using a non-xPC target environment language compiler? 
C:\PROGRA~2\MATLAB\R2011a\toolbox\rtw\targets\xpc\target\build\xpcblocks\adnipcie.c(21) : fatal error C1083: Cannot open include file: 'xpcimports.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
The make command returned an error of 2

採用された回答

MathWorks Support Team
MathWorks Support Team 2013 年 12 月 9 日
The error appears when we try to build using non-xPC target environment language compilers such as 'grt.tlc', 'ert.tlc' etc. In order to build successfully without errors, please go to Model Configuration Parameters -> Code Generation and choose 'xpctarget.tlc' from the browse list as the system target file. 
In case you want to still choose non-xPC target language compilers, the only workaround will be to remove the xPC target blocks from the model. 

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2011a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by