For a better experience on dSPACE.com, enable JavaScript in your browser. Thank you!

FAQ 273: S-Functions Compiler Error with Microtec PPC Compiler Vs 3.x

Question

The compilation of a C-coded S-Function fails with the following error message:

line <line number> pos <position number>; a value of type "const mxArray *" cannot be used to initialize an entity of type "real_T *"

or a similar error message with different pointer types.

Why does the Microtec PowerPC Compiler report this error message and why does it not occur with older dSPACE Releases?

Answer

Tags

Date 2012-01-01
Software Type Implementation Software
Topics of Interest Compiler
Product Real-Time Interface (RTI)
Type Frequently Asked Questions
Information Category Troubleshooting
dSPACE Release 2017-A, 2016-B, 2016-A, 2015-B, 2015-A, 2014-B, 2014-A, 2013-B, 2013-A, Prior to 2013-A
Keywords S-Function, Microtec PowerPC Compiler Vs. 3.x, pointer assignment, s-function parameter