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;
}
>
> As far as I know, porting it to a newer version would be a considerable
> effort. I think Gilles mentioned some problems in a earlier mail some
> months ago.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help