example compiling problems
Joel Sherrill
joel.sherrill at oarcorp.com
Sun Mar 4 17:03:12 UTC 2007
Ze Manel wrote:
> Hi. I have built the tools and compiled rtems, now I'm building the
> examples (for pc386).
> I built Hello world put it on a floppy and it was working, the output
> appeared, it compiled well..
>
Did you enable POSIX when you compiled RTEMS?
> but, when I try to compile all the examples:
>
> Making all in hello_world_c
>
>
>
> I get an error trying to compile psx_sched_report because the compiler
> can't find sched.h....
> Now, there are 2 directories named include
> "/home/dee2003/smarinho/rtems_stuff/include" which has c++ headers
> and /home/dee2003/smarinho/rtems_stuff/i386-rtems/include
>
> this one has a directory in it (sys) that has sched.h in it, is there
> an error with the example?
>
That's weird. I only see sched.h in include on my BSP test install point.
It is supposed to be in include. Check out /usr/include for where
GNU/Linux puts it.
> /*
> * Simple test program -- simplified version of sample test hello.
> */
>
> #include <bsp.h>
> #include <stdlib.h>
> #include <stdio.h>
> #include <sched.h>
> #include <stdlib.h>
>
> void print_sched_info(
> char *s,
> int policy
> )
> {
> int min, max, levels;
> struct timespec t;
>
> ....
>
> shouldn't the included shed be #include <sys/sched.h> ?
>
> Thanks
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
More information about the users
mailing list