请教一个编译rtems应用程序的问题

12 views
Skip to first unread message

Ziyu Yu

unread,
May 17, 2009, 10:41:34 AM5/17/09
to rtems-chines...@googlegroups.com
从下面找的示例程序:
http://www.rtems.org/onlinedocs/releases/rtemsdocs-4.8.0/share/rtems/html/c_user/c_user00468.html

status = rtems_task_delete( SELF ); /* should not return */
这一行,编译通不过,不知道SELF这个常量在哪里定义的.
这个程序前面也有问题,如RTEMS_STATUS_SUCCESSFUL应该是RTEMS_SUCCESSFUL
我用的是rtems 4.8.0.这个是跟版本有关系吗?
谢谢!

julyon

unread,
May 17, 2009, 1:16:07 PM5/17/09
to RTEMS Chinese User Group
可能是版本的问题吧。
你试试把SELF改为RTEMS_SELF,其中RTEMS_SELF的定义在tasks.h里面.

Ziyu Yu

unread,
May 17, 2009, 10:49:54 PM5/17/09
to rtems-chines...@googlegroups.com
好的,多谢!
julyon 写道:
> 可能是版本的问题吧。
> 你试试把SELF改为RTEMS_SELF,其中RTEMS_SELF的定义在tasks.h里面.
Reply all
Reply to author
Forward
0 new messages