Arduino 2560 target Model error
1 view (last 30 days)
Show older comments
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?
1 Comment
Walter Roberson
on 9 Jan 2013
Everything you show is a warning, not an error.
What is show just before the "In function" line ?
Accepted Answer
Vl
on 9 Jan 2013
2 Comments
Sebastian D'Amico
on 12 Mar 2013
Hello! I'm having the same error when I try to use a C++ library. Could you please share with us your solution?
Thanks
Sebastian
D P
on 19 Apr 2013
Hey I am getting a similar error when trying to upload the S-Function Builder block from simulink to arduino UNO target! How did you make it work ?? Please HELP!
Thanks! DP
More Answers (2)
Ian Alferez
on 24 Jun 2013
Got the same error: If I have a local variable inside my StateFlow Chart i will get this error. however if I remove my local variable inside the Stateflow Char, this issue will no occur. any IDEA?
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/SupportPackages/R2013a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/SupportPackages/R2013a/arduino/include" -I"C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include" -I"C:/00 Ian Documents/00 Work/00 Presentation/Arduino/myTimer_rtt" -I"C:/00 Ian Documents/00 Work/00 Presentation/Arduino" -I"C:/Program Files/MATLAB/R2013a/extern/include" -I"C:/Program Files/MATLAB/R2013a/simulink/include" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2013a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -g -Os -D"MODEL=myTimer" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"TID01EQ=0" -D"F_CPU=16000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_RTT_NUMSERVOS_=0" -c -x none ./ert_main.c ./myTimer.c ./myTimer_data.c ./HardwareSerial.cpp ./Print.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./new.cpp ./wiring.c ./wiring_analog.c ./wiring_digital.c ./io_wrappers.cpp In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./ert_main.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./myTimer.h:23, from ./ert_main.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./ert_main.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./myTimer.h:23, from ./ert_main.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from ./ert_main.c:17: ./myTimer.h:42: error: expected identifier or '(' before numeric constant ./myTimer.h:43: error: expected ';' before 'boolean_T' In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./myTimer.h:23, from ./myTimer.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./myTimer.h:23, from ./myTimer.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from ./myTimer.c:17: ./myTimer.h:42: error: expected identifier or '(' before numeric constant ./myTimer.h:43: error: expected ';' before 'boolean_T' ./myTimer.c: In function 'myTimer_output': ./myTimer.c:70: error: expected identifier before numeric constant ./myTimer.c:71: error: expected identifier before numeric constant ./myTimer.c:72: error: expected identifier before numeric constant ./myTimer.c:73: error: expected identifier before numeric constant ./myTimer.c:74: error: expected identifier before numeric constant ./myTimer.c:75: error: expected identifier before numeric constant ./myTimer.c:76: error: expected identifier before numeric constant ./myTimer.c:80: error: expected identifier before numeric constant ./myTimer.c:81: error: expected identifier before numeric constant ./myTimer.c:82: error: expected identifier before numeric constant ./myTimer.c:83: error: expected identifier before numeric constant ./myTimer.c:84: error: expected identifier before numeric constant ./myTimer.c:85: error: expected identifier before numeric constant ./myTimer.c:86: error: expected identifier before numeric constant ./myTimer.c:97: error: expected identifier before numeric constant ./myTimer.c:98: error: expected identifier before numeric constant ./myTimer.c:99: error: expected identifier before numeric constant ./myTimer.c:100: error: expected identifier before numeric constant ./myTimer.c:101: error: expected identifier before numeric constant ./myTimer.c:102: error: expected identifier before numeric constant ./myTimer.c:103: error: expected identifier before numeric constant ./myTimer.c:114: error: expected identifier before numeric constant ./myTimer.c:115: error: expected identifier before numeric constant ./myTimer.c:116: error: expected identifier before numeric constant ./myTimer.c:117: error: expected identifier before numeric constant ./myTimer.c:118: error: expected identifier before numeric constant ./myTimer.c:119: error: expected identifier before numeric constant ./myTimer.c:120: error: expected identifier before numeric constant ./myTimer.c:131: error: expected identifier before numeric constant ./myTimer.c:132: error: expected identifier before numeric constant ./myTimer.c:133: error: expected identifier before numeric constant ./myTimer.c:134: error: expected identifier before numeric constant ./myTimer.c:135: error: expected identifier before numeric constant ./myTimer.c:136: error: expected identifier before numeric constant ./myTimer.c:137: error: expected identifier before numeric constant ./myTimer.c:148: error: expected identifier before numeric constant ./myTimer.c:149: error: expected identifier before numeric constant ./myTimer.c:150: error: expected identifier before numeric constant ./myTimer.c:151: error: expected identifier before numeric constant ./myTimer.c:152: error: expected identifier before numeric constant ./myTimer.c:153: error: expected identifier before numeric constant ./myTimer.c:154: error: expected identifier before numeric constant ./myTimer.c:165: error: expected identifier before numeric constant ./myTimer.c:166: error: expected identifier before numeric constant ./myTimer.c:167: error: expected identifier before numeric constant ./myTimer.c:168: error: expected identifier before numeric constant ./myTimer.c:169: error: expected identifier before numeric constant ./myTimer.c:170: error: expected identifier before numeric constant ./myTimer.c:171: error: expected identifier before numeric constant ./myTimer.c:182: error: expected identifier before numeric constant ./myTimer.c:183: error: expected identifier before numeric constant ./myTimer.c:184: error: expected identifier before numeric constant ./myTimer.c:185: error: expected identifier before numeric constant ./myTimer.c:186: error: expected identifier before numeric constant ./myTimer.c:187: error: expected identifier before numeric constant ./myTimer.c:188: error: expected identifier before numeric constant ./myTimer.c:199: error: expected identifier before numeric constant ./myTimer.c:200: error: expected identifier before numeric constant ./myTimer.c:201: error: expected identifier before numeric constant ./myTimer.c:202: error: expected identifier before numeric constant ./myTimer.c:203: error: expected identifier before numeric constant ./myTimer.c:204: error: expected identifier before numeric constant ./myTimer.c:205: error: expected identifier before numeric constant ./myTimer.c:216: error: expected identifier before numeric constant ./myTimer.c:217: error: expected identifier before numeric constant ./myTimer.c:218: error: expected identifier before numeric constant ./myTimer.c:219: error: expected identifier before numeric constant ./myTimer.c:220: error: expected identifier before numeric constant ./myTimer.c:221: error: expected identifier before numeric constant ./myTimer.c:222: error: expected identifier before numeric constant ./myTimer.c:233: error: expected identifier before numeric constant ./myTimer.c:234: error: expected identifier before numeric constant ./myTimer.c:235: error: expected identifier before numeric constant ./myTimer.c:236: error: expected identifier before numeric constant ./myTimer.c:237: error: expected identifier before numeric constant ./myTimer.c:238: error: expected identifier before numeric constant ./myTimer.c:239: error: expected identifier before numeric constant ./myTimer.c:339: error: expected identifier before numeric constant ./myTimer.c:340: error: expected identifier before numeric constant ./myTimer.c:341: error: expected identifier before numeric constant ./myTimer.c:342: error: expected identifier before numeric constant ./myTimer.c:343: error: expected identifier before numeric constant ./myTimer.c:344: error: expected identifier before numeric constant ./myTimer.c:345: error: expected identifier before numeric constant ./myTimer.c:356: error: expected identifier before numeric constant ./myTimer.c:357: error: expected identifier before numeric constant ./myTimer.c:358: error: expected identifier before numeric constant ./myTimer.c:359: error: expected identifier before numeric constant ./myTimer.c:360: error: expected identifier before numeric constant ./myTimer.c:361: error: expected identifier before numeric constant ./myTimer.c:362: error: expected identifier before numeric constant ./myTimer.c:373: error: expected identifier before numeric constant ./myTimer.c:374: error: expected identifier before numeric constant ./myTimer.c:375: error: expected identifier before numeric constant ./myTimer.c:376: error: expected identifier before numeric constant ./myTimer.c:377: error: expected identifier before numeric constant ./myTimer.c:378: error: expected identifier before numeric constant ./myTimer.c:379: error: expected identifier before numeric constant ./myTimer.c:390: error: expected identifier before numeric constant ./myTimer.c:391: error: expected identifier before numeric constant ./myTimer.c:392: error: expected identifier before numeric constant ./myTimer.c:393: error: expected identifier before numeric constant ./myTimer.c:394: error: expected identifier before numeric constant ./myTimer.c:395: error: expected identifier before numeric constant ./myTimer.c:396: error: expected identifier before numeric constant ./myTimer.c:407: error: expected identifier before numeric constant ./myTimer.c:408: error: expected identifier before numeric constant ./myTimer.c:409: error: expected identifier before numeric constant ./myTimer.c:410: error: expected identifier before numeric constant ./myTimer.c:411: error: expected identifier before numeric constant ./myTimer.c:412: error: expected identifier before numeric constant ./myTimer.c:413: error: expected identifier before numeric constant ./myTimer.c:424: error: expected identifier before numeric constant ./myTimer.c:425: error: expected identifier before numeric constant ./myTimer.c:426: error: expected identifier before numeric constant ./myTimer.c:427: error: expected identifier before numeric constant ./myTimer.c:428: error: expected identifier before numeric constant ./myTimer.c:429: error: expected identifier before numeric constant ./myTimer.c:430: error: expected identifier before numeric constant ./myTimer.c:441: error: expected identifier before numeric constant ./myTimer.c:442: error: expected identifier before numeric constant ./myTimer.c:443: error: expected identifier before numeric constant ./myTimer.c:444: error: expected identifier before numeric constant ./myTimer.c:445: error: expected identifier before numeric constant ./myTimer.c:446: error: expected identifier before numeric constant ./myTimer.c:447: error: expected identifier before numeric constant ./myTimer.c:458: error: expected identifier before numeric constant ./myTimer.c:459: error: expected identifier before numeric constant ./myTimer.c:460: error: expected identifier before numeric constant ./myTimer.c:461: error: expected identifier before numeric constant ./myTimer.c:462: error: expected identifier before numeric constant ./myTimer.c:463: error: expected identifier before numeric constant ./myTimer.c:464: error: expected identifier before numeric constant ./myTimer.c:475: error: expected identifier before numeric constant ./myTimer.c:476: error: expected identifier before numeric constant ./myTimer.c:477: error: expected identifier before numeric constant ./myTimer.c:478: error: expected identifier before numeric constant ./myTimer.c:479: error: expected identifier before numeric constant ./myTimer.c:480: error: expected identifier before numeric constant ./myTimer.c:481: error: expected identifier before numeric constant ./myTimer.c:492: error: expected identifier before numeric constant ./myTimer.c:493: error: expected identifier before numeric constant ./myTimer.c:494: error: expected identifier before numeric constant ./myTimer.c:495: error: expected identifier before numeric constant ./myTimer.c:496: error: expected identifier before numeric constant ./myTimer.c:497: error: expected identifier before numeric constant ./myTimer.c:498: error: expected identifier before numeric constant ./myTimer.c:513: error: expected identifier before numeric constant ./myTimer.c:518: error: expected identifier before numeric constant ./myTimer.c:523: error: expected identifier before numeric constant ./myTimer.c:528: error: expected identifier before numeric constant ./myTimer.c:533: error: expected identifier before numeric constant ./myTimer.c:538: error: expected identifier before numeric constant ./myTimer.c:543: error: expected identifier before numeric constant ./myTimer.c: In function 'myTimer_initialize': ./myTimer.c:598: error: expected identifier before numeric constant ./myTimer.c:599: error: expected identifier before numeric constant ./myTimer.c:600: error: expected identifier before numeric constant ./myTimer.c:601: error: expected identifier before numeric constant ./myTimer.c:602: error: expected identifier before numeric constant ./myTimer.c:603: error: expected identifier before numeric constant ./myTimer.c:604: error: expected identifier before numeric constant In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer_data.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./myTimer.h:23, from ./myTimer_data.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer_data.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./myTimer.h:23, from ./myTimer_data.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from ./myTimer_data.c:17: ./myTimer.h:42: error: expected identifier or '(' before numeric constant ./myTimer.h:43: error: expected ';' before 'boolean_T' 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++ 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++ make: * [ert_main.o] Error 1
The build process will terminate as a result.
Caused by: The build failed with the following message: "C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C:/MATLAB/SupportPackages/R2013a/arduino/include" -I"C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include" -I"C:/00 Ian Documents/00 Work/00 Presentation/Arduino/myTimer_rtt" -I"C:/00 Ian Documents/00 Work/00 Presentation/Arduino" -I"C:/Program Files/MATLAB/R2013a/extern/include" -I"C:/Program Files/MATLAB/R2013a/simulink/include" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2013a/rtw/c/ert" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/variants/standard" -I"C:/MATLAB/SupportPackages/R2013a/arduino-1.0/libraries/Servo" -mmcu=atmega328p -std=gnu99 -Wall -Wstrict-prototypes -g -Os -D"MODEL=myTimer" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=0" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"TID01EQ=0" -D"F_CPU=16000000" -D"_RUNONTARGETHARDWARE_BUILD_=" -D"_RTT_NUMSERVOS_=0" -c -x none ./ert_main.c ./myTimer.c ./myTimer_data.c ./HardwareSerial.cpp ./Print.cpp ./WInterrupts.c ./WMath.cpp ./WString.cpp ./new.cpp ./wiring.c ./wiring_analog.c ./wiring_digital.c ./io_wrappers.cpp In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./ert_main.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./myTimer.h:23, from ./ert_main.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./ert_main.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./myTimer.h:23, from ./ert_main.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from ./ert_main.c:17: ./myTimer.h:42: error: expected identifier or '(' before numeric constant ./myTimer.h:43: error: expected ';' before 'boolean_T' In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./myTimer.h:23, from ./myTimer.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./myTimer.h:23, from ./myTimer.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from ./myTimer.c:17: ./myTimer.h:42: error: expected identifier or '(' before numeric constant ./myTimer.h:43: error: expected ';' before 'boolean_T' ./myTimer.c: In function 'myTimer_output': ./myTimer.c:70: error: expected identifier before numeric constant ./myTimer.c:71: error: expected identifier before numeric constant ./myTimer.c:72: error: expected identifier before numeric constant ./myTimer.c:73: error: expected identifier before numeric constant ./myTimer.c:74: error: expected identifier before numeric constant ./myTimer.c:75: error: expected identifier before numeric constant ./myTimer.c:76: error: expected identifier before numeric constant ./myTimer.c:80: error: expected identifier before numeric constant ./myTimer.c:81: error: expected identifier before numeric constant ./myTimer.c:82: error: expected identifier before numeric constant ./myTimer.c:83: error: expected identifier before numeric constant ./myTimer.c:84: error: expected identifier before numeric constant ./myTimer.c:85: error: expected identifier before numeric constant ./myTimer.c:86: error: expected identifier before numeric constant ./myTimer.c:97: error: expected identifier before numeric constant ./myTimer.c:98: error: expected identifier before numeric constant ./myTimer.c:99: error: expected identifier before numeric constant ./myTimer.c:100: error: expected identifier before numeric constant ./myTimer.c:101: error: expected identifier before numeric constant ./myTimer.c:102: error: expected identifier before numeric constant ./myTimer.c:103: error: expected identifier before numeric constant ./myTimer.c:114: error: expected identifier before numeric constant ./myTimer.c:115: error: expected identifier before numeric constant ./myTimer.c:116: error: expected identifier before numeric constant ./myTimer.c:117: error: expected identifier before numeric constant ./myTimer.c:118: error: expected identifier before numeric constant ./myTimer.c:119: error: expected identifier before numeric constant ./myTimer.c:120: error: expected identifier before numeric constant ./myTimer.c:131: error: expected identifier before numeric constant ./myTimer.c:132: error: expected identifier before numeric constant ./myTimer.c:133: error: expected identifier before numeric constant ./myTimer.c:134: error: expected identifier before numeric constant ./myTimer.c:135: error: expected identifier before numeric constant ./myTimer.c:136: error: expected identifier before numeric constant ./myTimer.c:137: error: expected identifier before numeric constant ./myTimer.c:148: error: expected identifier before numeric constant ./myTimer.c:149: error: expected identifier before numeric constant ./myTimer.c:150: error: expected identifier before numeric constant ./myTimer.c:151: error: expected identifier before numeric constant ./myTimer.c:152: error: expected identifier before numeric constant ./myTimer.c:153: error: expected identifier before numeric constant ./myTimer.c:154: error: expected identifier before numeric constant ./myTimer.c:165: error: expected identifier before numeric constant ./myTimer.c:166: error: expected identifier before numeric constant ./myTimer.c:167: error: expected identifier before numeric constant ./myTimer.c:168: error: expected identifier before numeric constant ./myTimer.c:169: error: expected identifier before numeric constant ./myTimer.c:170: error: expected identifier before numeric constant ./myTimer.c:171: error: expected identifier before numeric constant ./myTimer.c:182: error: expected identifier before numeric constant ./myTimer.c:183: error: expected identifier before numeric constant ./myTimer.c:184: error: expected identifier before numeric constant ./myTimer.c:185: error: expected identifier before numeric constant ./myTimer.c:186: error: expected identifier before numeric constant ./myTimer.c:187: error: expected identifier before numeric constant ./myTimer.c:188: error: expected identifier before numeric constant ./myTimer.c:199: error: expected identifier before numeric constant ./myTimer.c:200: error: expected identifier before numeric constant ./myTimer.c:201: error: expected identifier before numeric constant ./myTimer.c:202: error: expected identifier before numeric constant ./myTimer.c:203: error: expected identifier before numeric constant ./myTimer.c:204: error: expected identifier before numeric constant ./myTimer.c:205: error: expected identifier before numeric constant ./myTimer.c:216: error: expected identifier before numeric constant ./myTimer.c:217: error: expected identifier before numeric constant ./myTimer.c:218: error: expected identifier before numeric constant ./myTimer.c:219: error: expected identifier before numeric constant ./myTimer.c:220: error: expected identifier before numeric constant ./myTimer.c:221: error: expected identifier before numeric constant ./myTimer.c:222: error: expected identifier before numeric constant ./myTimer.c:233: error: expected identifier before numeric constant ./myTimer.c:234: error: expected identifier before numeric constant ./myTimer.c:235: error: expected identifier before numeric constant ./myTimer.c:236: error: expected identifier before numeric constant ./myTimer.c:237: error: expected identifier before numeric constant ./myTimer.c:238: error: expected identifier before numeric constant ./myTimer.c:239: error: expected identifier before numeric constant ./myTimer.c:339: error: expected identifier before numeric constant ./myTimer.c:340: error: expected identifier before numeric constant ./myTimer.c:341: error: expected identifier before numeric constant ./myTimer.c:342: error: expected identifier before numeric constant ./myTimer.c:343: error: expected identifier before numeric constant ./myTimer.c:344: error: expected identifier before numeric constant ./myTimer.c:345: error: expected identifier before numeric constant ./myTimer.c:356: error: expected identifier before numeric constant ./myTimer.c:357: error: expected identifier before numeric constant ./myTimer.c:358: error: expected identifier before numeric constant ./myTimer.c:359: error: expected identifier before numeric constant ./myTimer.c:360: error: expected identifier before numeric constant ./myTimer.c:361: error: expected identifier before numeric constant ./myTimer.c:362: error: expected identifier before numeric constant ./myTimer.c:373: error: expected identifier before numeric constant ./myTimer.c:374: error: expected identifier before numeric constant ./myTimer.c:375: error: expected identifier before numeric constant ./myTimer.c:376: error: expected identifier before numeric constant ./myTimer.c:377: error: expected identifier before numeric constant ./myTimer.c:378: error: expected identifier before numeric constant ./myTimer.c:379: error: expected identifier before numeric constant ./myTimer.c:390: error: expected identifier before numeric constant ./myTimer.c:391: error: expected identifier before numeric constant ./myTimer.c:392: error: expected identifier before numeric constant ./myTimer.c:393: error: expected identifier before numeric constant ./myTimer.c:394: error: expected identifier before numeric constant ./myTimer.c:395: error: expected identifier before numeric constant ./myTimer.c:396: error: expected identifier before numeric constant ./myTimer.c:407: error: expected identifier before numeric constant ./myTimer.c:408: error: expected identifier before numeric constant ./myTimer.c:409: error: expected identifier before numeric constant ./myTimer.c:410: error: expected identifier before numeric constant ./myTimer.c:411: error: expected identifier before numeric constant ./myTimer.c:412: error: expected identifier before numeric constant ./myTimer.c:413: error: expected identifier before numeric constant ./myTimer.c:424: error: expected identifier before numeric constant ./myTimer.c:425: error: expected identifier before numeric constant ./myTimer.c:426: error: expected identifier before numeric constant ./myTimer.c:427: error: expected identifier before numeric constant ./myTimer.c:428: error: expected identifier before numeric constant ./myTimer.c:429: error: expected identifier before numeric constant ./myTimer.c:430: error: expected identifier before numeric constant ./myTimer.c:441: error: expected identifier before numeric constant ./myTimer.c:442: error: expected identifier before numeric constant ./myTimer.c:443: error: expected identifier before numeric constant ./myTimer.c:444: error: expected identifier before numeric constant ./myTimer.c:445: error: expected identifier before numeric constant ./myTimer.c:446: error: expected identifier before numeric constant ./myTimer.c:447: error: expected identifier before numeric constant ./myTimer.c:458: error: expected identifier before numeric constant ./myTimer.c:459: error: expected identifier before numeric constant ./myTimer.c:460: error: expected identifier before numeric constant ./myTimer.c:461: error: expected identifier before numeric constant ./myTimer.c:462: error: expected identifier before numeric constant ./myTimer.c:463: error: expected identifier before numeric constant ./myTimer.c:464: error: expected identifier before numeric constant ./myTimer.c:475: error: expected identifier before numeric constant ./myTimer.c:476: error: expected identifier before numeric constant ./myTimer.c:477: error: expected identifier before numeric constant ./myTimer.c:478: error: expected identifier before numeric constant ./myTimer.c:479: error: expected identifier before numeric constant ./myTimer.c:480: error: expected identifier before numeric constant ./myTimer.c:481: error: expected identifier before numeric constant ./myTimer.c:492: error: expected identifier before numeric constant ./myTimer.c:493: error: expected identifier before numeric constant ./myTimer.c:494: error: expected identifier before numeric constant ./myTimer.c:495: error: expected identifier before numeric constant ./myTimer.c:496: error: expected identifier before numeric constant ./myTimer.c:497: error: expected identifier before numeric constant ./myTimer.c:498: error: expected identifier before numeric constant ./myTimer.c:513: error: expected identifier before numeric constant ./myTimer.c:518: error: expected identifier before numeric constant ./myTimer.c:523: error: expected identifier before numeric constant ./myTimer.c:528: error: expected identifier before numeric constant ./myTimer.c:533: error: expected identifier before numeric constant ./myTimer.c:538: error: expected identifier before numeric constant ./myTimer.c:543: error: expected identifier before numeric constant ./myTimer.c: In function 'myTimer_initialize': ./myTimer.c:598: error: expected identifier before numeric constant ./myTimer.c:599: error: expected identifier before numeric constant ./myTimer.c:600: error: expected identifier before numeric constant ./myTimer.c:601: error: expected identifier before numeric constant ./myTimer.c:602: error: expected identifier before numeric constant ./myTimer.c:603: error: expected identifier before numeric constant ./myTimer.c:604: error: expected identifier before numeric constant In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer_data.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:24:1: warning: "true" redefined In file included from ./myTimer.h:23, from ./myTimer_data.c:17: ./rtwtypes.h:158:1: warning: this is the location of the previous definition In file included from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_blocks_abstraction.h:8, from C:/MATLAB/SupportPackages/R2013a/arduino/blocks/sfcn/include/arduino_digitaloutput_lct.h:11, from ./myTimer.h:26, from ./myTimer_data.c:17: C:/MATLAB/SupportPackages/R2013a/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:25:1: warning: "false" redefined In file included from ./myTimer.h:23, from ./myTimer_data.c:17: ./rtwtypes.h:154:1: warning: this is the location of the previous definition In file included from ./myTimer_data.c:17: ./myTimer.h:42: error: expected identifier or '(' before numeric constant ./myTimer.h:43: error: expected ';' before 'boolean_T' 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++ 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++ make: * [ert_main.o] Error 1
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!