How do I solve "Inconsistent input arguments: expected class 'coder.Type', found 'struct'"

Hi, I am trying to migrate from 2014a to 2015b but get some problem when using codegen. In my build.m I call codegen like this
codegen -config cfg ...
-launchreport ...
-globals G ...
MyIncludes\my_fusionTracker_types.h ...
MyIncludes\radarBarrierTypes.h ...
MyIncludes\CADS4_typesShared.h ...
MyIncludes\tracker_utilities.h ...
fusionTracker.m -args {fusDetails, fusTrk, fusTrkPred, hostProps, vehState, dets, tlet, tletProps, visObs, visProps, visSys, visSysProps, visFailsafes, roadInfo, Calib, Guardrails} ...
guardrailTracker.m -args {dets, tlet, tletProps, vehState, Guardrails, logData, internal_guard }
and I get the following error:
240 codegen -config cfg ...
Inconsistent input arguments: expected class 'coder.Type', found 'struct'
This worked fine in 2014a but not in 2015b so what is the trick?
/Charles

Answers (0)

This question is closed.

Asked:

on 17 Nov 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!