打印
[LOOK]

LOOK工程出错,求解

[复制链接]
2575|8
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
pish|  楼主 | 2011-7-5 14:50 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
为什么我按向导建的工程不能编译呢?请各位帮忙看看!





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

相关帖子

沙发
hotpower| | 2011-7-5 15:48 | 只看该作者
看cc和linker,look的路径不对。
例程是三心的?他的look路径在D盘。

使用特权

评论回复
板凳
john_lee| | 2011-7-5 15:48 | 只看该作者
用CodeSoucery G++ Lite 2010.09-51。

使用特权

评论回复
地板
hotpower| | 2011-7-5 15:53 | 只看该作者
老师,这种问题是版本的问题了?

使用特权

评论回复
5
pish|  楼主 | 2011-7-5 16:22 | 只看该作者
谢谢两位!按照老师的链接下了2010.9.0.51版本,真的就好了,哈哈,谢谢哈

使用特权

评论回复
6
hotpower| | 2011-7-5 17:38 | 只看该作者
这个老师最清楚。
本助学园地里有十几个look的例程,下载后,
编译出错要看look目录正确否。

使用特权

评论回复
7
john_lee| | 2011-7-6 01:04 | 只看该作者
这个2011.3-42的CodeSourcery G++ Lite版本很奇怪,预定义宏是__ARM_ARCH_6SM__,以前都是__ARM_ARCH_6M__。
所以导致编译错误。

这个2011.3-42的gcc版本是 4.5.2,2010.9-51的gcc版本是4.5.1,我用了这两个版本的编译器来编译look,得到的代码是一样的。

而yagarto的最新发布版的gcc版本是4.6.0,其中的预定义宏又还原成了__ARM_ARCH_6M__。真是晕,我想是不是CodeSourcery的Toolchain制作人员手误,敲了一个S进去。呵呵,瞎猜。

但我使用yagarto的toolchain来编译look,代码比CodeSourcery生成的还大些,看来CodeSourcery真的是在原版gcc上修改、优化了不少。

期待下个CodeSourcery G++ Lite发布。

使用特权

评论回复
8
Ryanhsiung| | 2011-10-31 19:22 | 只看该作者
7# john_lee 这个是在那里,我要把他改回来

使用特权

评论回复
9
hotpower| | 2011-11-1 11:15 | 只看该作者
希望老师把LOOK的向导做完善,这样大家才能继续。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:吃好早餐

11

主题

36

帖子

0

粉丝