All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Roderik_Wildenburg@domain.hid
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] Newbie Question  : Compile test programm
Date: Fri, 17 Feb 2006 14:54:02 +0100	[thread overview]
Message-ID: <43F5D57A.5060809@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A1C34FE@ARVMAIL1.mra.roland-man.biz>

Roderik_Wildenburg@domain.hid wrote:
> Dear Gurus,
> 
> I simply try to compile a straightforward Xenomai example for the vxWorks-skin like this :
> 
> --------------------------------------------------
> #include <nucleus/thread.h>
> #include <nucleus/xenomai.h>
> #include <vxworks/vxworks.h>
> #include <stdio.h>
> 
> int testtask (int a1, int a2,int a3,int a4,int a5,int a6,int a7,int a8,int a9,int a10)
> {
>    for(;;)
>    {
>       printf("Hello World\n");
>       taskDelay(sysClkRateGet()*1);
>    }
> }
> 
> main(int argc, char **argv)
> {
>    int taskid;
> 
>    taskid=taskSpawn( "vxTestTask", 0, 0, 1000, testtask, 0,0,0,0,0,0,0,0,0,0);
>    taskDelay(sysClkRateGet()*20);
> 
> }
> 
> --------------------------------------------------
> 
> Not very useful, but good enough as an example.
> 
> When I try to (cross-)compile (for PowerPC) this code with the following statement :
> 
> 
>>ppc-linux-gcc -I ~/xenomai/_install/include test.c
> 
> 
> (_install/include is the directory of the installed (make install) Xenomai header files.) I get the following errormessage (and much more):
> 
> In file included from ~/xenomai/_install/include/nucleus/xenomai.h:23,
>                  from test.c:2:
> ~/xenomai/_install/include/xenomai/nucleus/pod.h:125: parse error before "xnthread_t"
> ~/xenomai/_install/include/xenomai/nucleus/pod.h:125: warning: no semicolon at end of struct or union
> ~/xenomai/_install/include/xenomai/nucleus/pod.h:127: warning: data definition has no type or storage class
> 
> 
> I tried to find a simple example code for vxworks-skin, but I wasn´t succesfull (is there such a code at all and where ?). 
> Could you please give me a hint, what I is wrong with my code, or where I can find some Xenomai examples (vxWorks-skin).
> 

Try ksrc/skins/vxworks/demos/

> Thank you in advance 
> Roderik
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 

Philippe.


      reply	other threads:[~2006-02-17 13:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-17 13:41 [Xenomai-help] Newbie Question : Compile test programm Roderik_Wildenburg
2006-02-17 13:54 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43F5D57A.5060809@domain.hid \
    --to=rpm@xenomai.org \
    --cc=Roderik_Wildenburg@domain.hid \
    --cc=Xenomai-help@domain.hid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.