I am running Simulink /Stateflow model and have abnormal exit from the Stateflow model code build:
The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The build failed with the following message: "C:/MATLAB/Targets/R2012b/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/Users/VL/Documents/MATLAB/Air_Control_rtt" -I"C:/Users/VL/Documents/MATLAB" -I"C:/Program Files/MATLAB/.......cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++cc1plus.exe: warning: command line option "-std=gnu99" is valid for C/ObjC but not for C++cc1plus.exe: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++.........../io_wrappers.cpp: In function 'void Serial_read(int, int, uint8_t*, int*)':
It should be noted that everything works for Simulink only models. Any suggestions?
Best Answer