Hello,
When I transplant a project from CodeWarrior 6.3 to 11.1, I encounter some build errors as below.
C1815 TIME_1MIN not declared (or typename) fault.c /ABC210_CT_SX005/Sources line 297 C/C++ Problem
C2801 ';' missing fault.c /ABC210_CT_SX005/Sources line 302 C/C++ Problem
C1801 Implicit parameter-declaration for 'CheckTickTime' fault.c /ABC210_CT_SX005/Sources line 153 C/C++ Problem
C1801 Implicit parameter-declaration for 'TickTime' fault.c /ABC210_CT_SX005/Sources line 217 C/C++ Problem
C1814 Arithmetic or pointer-expression expected fault.c /ABC210_CT_SX005/Sources line 314 C/C++ Problem
C2801 '}' missing fault.c /ABC210_CT_SX005/Sources line 322 C/C++ Problem
C2801 ')' missing fault.c /ABC210_CT_SX005/Sources line 314 C/C++ Problem
C2450 Expected: { IDENT auto break case const continue default do extern for goto if register return static switch typedef volatile while __asm __interrupt fault.c /ABC210_CT_SX005/Sources line 314 C/C++ Problem
C1801 Implicit parameter-declaration for 'CheckTickTime1Ms' time.c /ABC210_CT_SX005/drive line 62 C/C++ Problem
C2801 ';' missing time.c /ABC210_CT_SX005/drive line 89 C/C++ Problem
C1814 Arithmetic or pointer-expression expected time.c /ABC210_CT_SX005/drive line 90 C/C++ Problem
C1815 TICK_TIME_LIMIT not declared (or typename) time.c /ABC210_CT_SX005/drive line 87 C/C++ Problem
mingw32-make: *** [Sources/fault_c.obj] Error 1 ABC210_CT_SX005 C/C++ Problem
C2801 ')' missing time.c /ABC210_CT_SX005/drive line 89 C/C++ Problem
mingw32-make: *** Waiting for unfinished jobs.... ABC210_CT_SX005 C/C++ Problem
mingw32-make: *** [drive/time_c.obj] Error 1 ABC210_CT_SX005 C/C++ Problem
C1814 Arithmetic or pointer-expression expected fault.c /ABC210_CT_SX005/Sources line 326 C/C++ Problem
C2450 Expected: { IDENT auto break case const continue default do extern for goto if register return static switch typedef volatile while __asm __interrupt fault.c /ABC210_CT_SX005/Sources line 326 C/C++ Problem
C2801 ')' missing fault.c /ABC210_CT_SX005/Sources line 326 C/C++ Problem
C2801 ';' missing fault.c /ABC210_CT_SX005/Sources line 324 C/C++ Problem
C2801 '}' missing fault.c /ABC210_CT_SX005/Sources line 335 C/C++ Problem
C2801 ';' missing fault.c /ABC210_CT_SX005/Sources line 332 C/C++ Problem
There was no errors when built this project on CW6.3 formerly, is there any detail I miss when I transplant this project to cause so many build errors?
Best regards,
Sarah
Hello @w_lingjun,
Have you tried checking the following application note?
Best Regards,
Alexis Andalon
Hi Alexis,
Thank you for supplying the application note!
I guess the upper version has more limitation. For example, I define a MACRO in afile.h, and use this MACRO in afile.c, and include afile.h in afile.c. It will infor error, the MACRO is not defined…
Best regards,
Sarah