example compiling problems
Ze Manel
zemanel at gmail.com
Sun Mar 4 00:53:03 UTC 2007
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..
but, when I try to compile all the examples:
Making all in hello_world_c
make[1]: Entering directory
`/home/dee2003/smarinho/rtems_stuff/tools/examples-4.6.6/hello_world_c'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/dee2003/smarinho/rtems_stuff/tools/examples-4.6.6/hello_world_c'
Making all in simple_main
make[1]: Entering directory
`/home/dee2003/smarinho/rtems_stuff/tools/examples-4.6.6/simple_main'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/dee2003/smarinho/rtems_stuff/tools/examples-4.6.6/simple_main'
Making all in psx_sched_report
make[1]: Entering directory
`/home/dee2003/smarinho/rtems_stuff/tools/examples-4.6.6/psx_sched_report'
i386-rtems-gcc --pipe
-B/home/dee2003/smarinho/rtems_stuff/tools/install_dir//i386-rtems/pc386/lib/
-specs bsp_specs -qrtems -g -Wall -O4 -g -c -o
o-optimize/test.o test.c
test.c:8:19: sched.h: No such file or directory
test.c: In function `print_sched_info':
test.c:20: warning: implicit declaration of function
`sched_get_priority_min'
test.c:21: warning: implicit declaration of function
`sched_get_priority_max'
test.c:22: warning: implicit declaration of function `sched_rr_get_interval'
make[1]: *** [o-optimize/test.o] Error 1
make[1]: Leaving directory
`/home/dee2003/smarinho/rtems_stuff/tools/examples-4.6.6/psx_sched_report'
make: *** [all] Error 1
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?
/*
* 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20070304/aee079df/attachment.html>
More information about the users
mailing list