Why do I receive a "multiple definitions" error during compilation when using MATLAB Compiler 4.0 (R14)?

I am trying to compile a program that links multiple libraries referencing mclcppclass.h. When I do, I receive the following error:
multiple definition of mclcppMlfFeval
Compilation exited abnormally with code 2
Why?

 Respuesta aceptada

This problem has been fixed in MATLAB Compiler 4.2 (R14SP2). If you are using a previous version, read the following:
This is an error in the way that the mclcppMlfFeval was defined.
To work around this issue, edit the header file mclcppclass.h so that the mclcppMlfFeval function is defined as an inline function.
This can be done by adding the keyword "inline" before the function definition.

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by