Unable to create mex function ‘XX_Simulinkfunction_sfun.mexw64’ required for simulation.
I am trying to call custom c code in my stateflow and got below error
Making simulation target "XX_Simulinkfunction_sfun", … Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1065: invalid option ‘-‘ Stop.
Component:Make | Category:Make error
Unable to create mex function ‘XX_Simulinkfunction_sfun.mexw64’ required for simulation.
example.c
#include "example.h"
double busactive(double u1, double u2)
{
double retval;
retval = u1 + u2;
return (retval);
}
example.h
#define TRUE 1
#define FALSE 0
#define MAYBE 2
double busactive(double, double);
added #include "example.h" in simulation target Header file section and example.c is source file section.
using 2018a matlab and MEX configured to use ‘Microsoft Visual C++ 2017 (C)’ for C language compilation.
Could anyone help me solving this issue.I am trying to call custom c code in my stateflow and got below error
Making simulation target "XX_Simulinkfunction_sfun", … Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1065: invalid option ‘-‘ Stop.
Component:Make | Category:Make error
Unable to create mex function ‘XX_Simulinkfunction_sfun.mexw64’ required for simulation.
example.c
#include "example.h"
double busactive(double u1, double u2)
{
double retval;
retval = u1 + u2;
return (retval);
}
example.h
#define TRUE 1
#define FALSE 0
#define MAYBE 2
double busactive(double, double);
added #include "example.h" in simulation target Header file section and example.c is source file section.
using 2018a matlab and MEX configured to use ‘Microsoft Visual C++ 2017 (C)’ for C language compilation.
Could anyone help me solving this issue. I am trying to call custom c code in my stateflow and got below error
Making simulation target "XX_Simulinkfunction_sfun", … Microsoft (R) Program Maintenance Utility Version 14.10.25019.0 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1065: invalid option ‘-‘ Stop.
Component:Make | Category:Make error
Unable to create mex function ‘XX_Simulinkfunction_sfun.mexw64’ required for simulation.
example.c
#include "example.h"
double busactive(double u1, double u2)
{
double retval;
retval = u1 + u2;
return (retval);
}
example.h
#define TRUE 1
#define FALSE 0
#define MAYBE 2
double busactive(double, double);
added #include "example.h" in simulation target Header file section and example.c is source file section.
using 2018a matlab and MEX configured to use ‘Microsoft Visual C++ 2017 (C)’ for C language compilation.
Could anyone help me solving this issue. nmake : fatal error u1065 MATLAB Answers — New Questions