Running Simulink models from Visual Studio

5 ビュー (過去 30 日間)
Fabian Jonsson
Fabian Jonsson 2014 年 1 月 31 日
コメント済み: Fabian Jonsson 2014 年 1 月 31 日
I have compiled all subsystems of a big, complex, Simulink model into a series of dlls. All of them are working in Visual Studio except one. The one that is not working is the only one that requires the simstruc.h header file, and I get about 120 error messages when I try to compile them. Most of them are in simstruc.h, but also in subsequent includes, like sfcn_bridge.h for example. All of them look the same way:
error C2143: syntax error : missing ';' before '*' c:\matlabr2011b_x86\rtw\c\src\sfcn_bridge.h (37) error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\matlabr2011b_x86\rtw\c\src\sfcn_bridge.h (37)
error C2143: syntax error : missing ';' before '*' c:\matlabr2011b_x86\simulink\include\simstruc.h (2135) error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\matlabr2011b_x86\simulink\include\simstruc.h (2135)
I have been able to compile programs that include simstruc.h before, but suddenly it's not working. Can anyone point me in the right direction?
  1 件のコメント
Fabian Jonsson
Fabian Jonsson 2014 年 1 月 31 日
Oh, and the code in the line in above example looks like this:
sfcn_bridge.h (37): SS_SimMode *simModePtr;
simstruc.h (2135): SparseHeader* slvrJacobianMatrix;

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by