为什么我按向导建的工程不能编译呢?请各位帮忙看看!
Build target 'Debug'
compiling init.cpp...
C:/Program Files/LOOK/Cortex/include/look:45:2: error: #error This header file must only be compiled for ARMv6-M and ARMv7-M architecture.
C:/Program Files/LOOK/Cortex/include/co:48:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:49:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:26: error: 'base' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:32: error: expected '{' before 'sched_t'
C:/Program Files/LOOK/Cortex/include/co:51:40: error: invalid type in declaration before '{' token
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected primary-expression before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected '}' before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected ',' or ';' before 'public'
C:/Program Files/LOOK/Cortex/include/co:54:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:55:17: error: expected initializer before '__OPT_ATTR__'
C:/Program Files/LOOK/Cortex/include/co:57:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:59:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:61:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:62:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:64:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:67:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:71:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:75:1: error: expected declaration before '}' token
compiling scheduler.cpp...
C:/Program Files/LOOK/Cortex/include/look:45:2: error: #error This header file must only be compiled for ARMv6-M and ARMv7-M architecture.
C:/Program Files/LOOK/Cortex/include/co:48:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:49:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:26: error: 'base' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:32: error: expected '{' before 'sched_t'
C:/Program Files/LOOK/Cortex/include/co:51:40: error: invalid type in declaration before '{' token
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected primary-expression before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected '}' before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected ',' or ';' before 'public'
C:/Program Files/LOOK/Cortex/include/co:54:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:55:17: error: expected initializer before '__OPT_ATTR__'
C:/Program Files/LOOK/Cortex/include/co:57:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:59:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:61:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:62:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:64:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:67:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:71:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:75:1: error: expected declaration before '}' token
compiling systick.cpp...
C:/Program Files/LOOK/Cortex/include/look:45:2: error: #error This header file must only be compiled for ARMv6-M and ARMv7-M architecture.
C:/Program Files/LOOK/Cortex/include/co:48:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:49:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:26: error: 'base' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:32: error: expected '{' before 'sched_t'
C:/Program Files/LOOK/Cortex/include/co:51:40: error: invalid type in declaration before '{' token
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected primary-expression before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected '}' before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected ',' or ';' before 'public'
C:/Program Files/LOOK/Cortex/include/co:54:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:55:17: error: expected initializer before '__OPT_ATTR__'
C:/Program Files/LOOK/Cortex/include/co:57:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:59:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:61:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:62:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:64:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:67:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:71:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:75:1: error: expected declaration before '}' token
compiling vector.cpp...
C:/Program Files/LOOK/Cortex/include/look:45:2: error: #error This header file must only be compiled for ARMv6-M and ARMv7-M architecture.
C:/Program Files/LOOK/Cortex/include/co:48:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:49:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:26: error: 'base' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:32: error: expected '{' before 'sched_t'
C:/Program Files/LOOK/Cortex/include/co:51:40: error: invalid type in declaration before '{' token
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected primary-expression before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected '}' before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected ',' or ';' before 'public'
C:/Program Files/LOOK/Cortex/include/co:54:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:55:17: error: expected initializer before '__OPT_ATTR__'
C:/Program Files/LOOK/Cortex/include/co:57:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:59:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:61:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:62:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:64:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:67:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:71:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:75:1: error: expected declaration before '}' token
compiling dd.cpp...
C:/Program Files/LOOK/Cortex/include/look:45:2: error: #error This header file must only be compiled for ARMv6-M and ARMv7-M architecture.
C:/Program Files/LOOK/Cortex/include/co:48:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:49:9: error: 'link' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:26: error: 'base' has not been declared
C:/Program Files/LOOK/Cortex/include/co:51:32: error: expected '{' before 'sched_t'
C:/Program Files/LOOK/Cortex/include/co:51:40: error: invalid type in declaration before '{' token
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected primary-expression before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected '}' before 'public'
C:/Program Files/LOOK/Cortex/include/co:52:3: error: expected ',' or ';' before 'public'
C:/Program Files/LOOK/Cortex/include/co:54:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:55:17: error: expected initializer before '__OPT_ATTR__'
C:/Program Files/LOOK/Cortex/include/co:57:4: error: 'task_t' does not name a type
C:/Program Files/LOOK/Cortex/include/co:59:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:61:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:62:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:64:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:67:3: error: expected unqualified-id before 'protected'
C:/Program Files/LOOK/Cortex/include/co:71:4: error: 'base' does not name a type
C:/Program Files/LOOK/Cortex/include/co:75:1: error: expected declaration before '}' token
linking...
arm-none-eabi-gcc: ./debug/init.o: No such file or directory
arm-none-eabi-gcc: ./debug/scheduler.o: No such file or directory
arm-none-eabi-gcc: ./debug/systick.o: No such file or directory
arm-none-eabi-gcc: ./debug/vector.o: No such file or directory
arm-none-eabi-gcc: ./debug/dd.o: No such file or directory
Target not created |