这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » ucos2 ucos2的例子

共3条 1/1 1 跳转至

ucos2 ucos2的例子

院士
2006-09-17 18:14:16     打赏
ucos2 ucos2的例子



关键词: ucos2     例子    

院士
2006-12-22 22:43:00     打赏
2楼
问 在编译周立功光盘附带的例子(Ucosii 2.52 for lpc2100\EX1_ARM)时,居然出了104个错误,我是把整个文件夹从光盘拷到硬盘,没做任何改动就编译,下面是所有的错误。周立功那本手册写得比较简单,不知道这个例子是做什么的。

Could not find or load the file 襉s_cpu_a.s?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_cpu_c.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Error   : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40     Error   : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114     Error   : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42     Error   : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63     Error   : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63     Error   : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64     Error   : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64     Error   : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65     Error   : (Fatal) C2285E: C3047U: Too many errors pc.h line 65     Could not find or load the file 襉s_core.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_flag.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_mbox.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_mem.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_mutex.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_q.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_sem.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_task.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Could not find or load the file 襉s_time.c?for target 褼ebugInFLASH?for project 褽X1_ARM.mcp?  Error   : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40     Error   : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114     Error   : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42     Error   : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63     Error   : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63     Error   : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64     Error   : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64     Error   : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65     Error   : (Fatal) C2285E: C3047U: Too many errors pc.h line 65     Error   : (Serious) C2857E: #include file "..\..\ARM\os_cpu.h" wouldn't open Includes.h line 40     Error   : C2285E: expected ';' or ',' - inserted ';' before 'OS_FLAGS' os_cfg.h line 114     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'OS_FLAGS' os_cfg.h line 114     Error   : (Serious) C2857E: #include file "..\..\source\ucos_ii.h" wouldn't open Includes.h line 42     Error   : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 63     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'y' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'y' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'c' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'c' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before 'color' pc.h line 63     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'color' pc.h line 63     Error   : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 63     Error   : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 63     Error   : C2285E: expected ')' or ',' - inserted ')' before 'x' pc.h line 64     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before 'x' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'x' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'INT8U' pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before 'bgnd_color' pc.h line 64     Error   : C2225W: declaration lacks type/storage-class (assuming 'int'): 'bgnd_color' pc.h line 64     Error   : C2285E: expected ';' or ',' - inserted ';' before ')' pc.h line 64     Error   : (Serious) C2322E: Expecting <declarator> or <type> but found ')' pc.h line 64     Error   : C2285E: expected ')' or ',' - inserted ')' before 'y' pc.h line 65     Error   : C2470E: function prototype formal 'INT8U' needs type or class - 'int' assumed pc.h line 65     Error   : (Fatal) C2285E: C3047U: Too many errors pc.h line 65     
1: 例子中没有uCOS的源码,首先要添加源码(2.52版本)这个例子是uCOS作者的经典移植示例。 2: 请问具体应该怎么做(或者要读什么)才能让例子跑起来?请问具体应该怎么做(或者要读什么)才能让例子跑起来?

多谢
Camel2005

菜鸟
2010-08-03 09:39:37     打赏
3楼
大侠,你怎么编译过的,我也遇见类似的问题,错误好几十个,和你贴出来的错误几乎一样,跪求方法,谢谢

共3条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]