MATLAB Function Coder error

1 Ansicht (letzte 30 Tage)
岡本 善樹
岡本 善樹 am 29 Apr. 2024
Kommentiert: 岡本 善樹 am 3 Mai 2024
Does anyone know how to resolve this error?
「Cannot call function.」
「During code generation, the integer input or result class of TYPECAST must map directly to C types on the target hardware. Class uint64 does not map to 64-bit C types.」

Antworten (1)

3TEN
3TEN am 1 Mai 2024
Maybe, this answer will help to solve your problem.
You should change the setting of "Simulink Coder".
You should switch the setting about "long long type" from "off" to "on".
I hope my answer will help you to solve your problem.
  1 Kommentar
岡本 善樹
岡本 善樹 am 3 Mai 2024
Thank you for your answer.
I already tried that method but it didn't work.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by