Hi everybody !
I have some problems with code generation. my generated code looks like okay. But if I make some implementation with this code to another main C-Script, the variables don't suit together :/ I see this error:
incompatible types when assigning to type ‘real_T’
can anybody tell me please where is the problem ? what should I chance to have the right variable type
thanks in advance
Best Regards Onur

댓글 수: 2

Anthony Poulin
Anthony Poulin 2014년 7월 7일
I think the type real_T is defined in the header file "tmwtypes.h", do you have include it?
Onur Isbecer
Onur Isbecer 2014년 7월 7일
i think its related with "rtwtypes.h" but i have also "tmwtpyes.h"

댓글을 달려면 로그인하십시오.

 채택된 답변

Titus Edelhofer
Titus Edelhofer 2014년 7월 7일

0 개 추천

You should include the generated header file for the model, it should contain all necessary includes.
Titus

댓글 수: 3

Onur Isbecer
Onur Isbecer 2014년 7월 7일
thanks, ive included the "rtwtypes.h" , now i see no error about real_T, but i have now a new error, it says fatal error: rtwtypes.h no file or directory, its really funny :/
Titus Edelhofer
Titus Edelhofer 2014년 7월 7일
Don't use the rtwtypes.h but the "modelname".h. It includes types, function headers etc.
Regarding the error: you will need to tell your compiler where to find it (command line it's the "-I" switch).
Titus
Onur Isbecer
Onur Isbecer 2014년 7월 7일
including just modelname.h doesn't help. but I added rtwtypes.h on the main script, its okay. I added also this header to my CMakeList.txt , I mean I told it to my compiler where it should be. its really strange iam getting still the same error...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2014년 7월 7일

댓글:

2014년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by