Why do I receive an error message "expected expression before '/' token" when I run a model in Linux in Simulink 7.3 (R2009a) ?

I have a model with an S-function made with S-function builder. It runs fine in Windows environment, however when run on Linux, it gives the following error message:
expected expression before '/' token

 採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
This is an expected behavior in Simulink 7.3 (R2009a). The reason this happens is because the comments in the S-function code include the "//" tag. The gcc compiler does not interpret this tag and throws an error.
As a workaround, change the comment tag to "/*" and "*/" .

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

リリース

R2009a

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by