Am Freitag, 3. November 2006 09:13 schrieb Stephan Zimmermann:
> Am Donnerstag, 2. November 2006 17:17 schrieb Niklaus Giger:
> > Am Donnerstag, 2. November 2006 14:53 schrieb Stephan Zimmermann:
> > > Hi, I am actually trying to set up the Simulator, which turns out to be
> > > not so easy...
> >
> > <..>
> >
> > > But calling
> > >   "gcic -I/usr/xenomai/include -g -c main.cpp "
> > > leads to :
> >
> > Does your C++ programm compile cleanly under gcc-2.95? If not, you are
> > out of luck, as the simulator was developped under gcc-2.95.
>
> I did not even come to trying to compile my C++ application under gcc-2.95,
> as my testprogram - which is free of any c++ code - doesn't work.
> (The testprogram simply shadows the maintask and returns, some five lines
> of code..., as I just see, the code I posted recently contains "std::cout
> << something..." calls, I removed them and removed everything not needed,
> didn't mention that before)
>
> #include <sys/mman.h>
> #include <stdio.h>
> #include "native/task.h"
> #include "native/timer.h"
> RT_TASK maintask;
> int count = 0;
> int main(void){
>       int err;
>       unsigned long overrun = 0;
>       printf("test...\n");
>       mlockall(MCL_CURRENT | MCL_FUTURE);
>       err = rt_task_shadow (&maintask,"maintask",10,0);
>       return 0;
> }
>
For the simulator you must have a root_thread_init instead of a main 
procedure.

Have a look at ksrc/skins/üsos+/demos/satch.c. Try to make sim in this 
directory and test whether the resulting exec works.

Best regards

-- 
Niklaus Giger

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to