This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: synthetic target: kapi.h not found
On October 13, 2004 03:47 am, Bart Veer wrote:
> >>>>> "Stephan" == Stephan Bourduas <stephan.bourduas@videotron.ca> writes:
>
> Stephan> I've decided to play a little with the synthetic target.
> Stephan> I've been able to compile and run "hello.c" from the
> Stephan> "examples" directory, but when I try to compile
> Stephan> "twothreads.c", I get "cyg/kapi.h" not found. When I look
> Stephan> in "../include/sys", kapi.h is indeed missing. Does
> Stephan> anyone know how to compile and run the twothreads example
> Stephan> on the synthetic target?
>
> Not surprising since the header file should be <cyg/kernel/kapi.h>,
> not <cyg/kapi.h> or <sys/kapi.h>. Both the user guide and the example
> use the correct path so I am not sure where you got <cyg/kapi.h> from.
>
> The synthetic target is limited in terms of I/O facilities, and timing
> behaviour is more variable than on dedicated hardware, but from a
> programming perspective you should not have to treat it any different
> from a real embedded target.
>
> Bart
My mistake; the output from gcc was:
twothreads.c:1:29: cyg/kernel/kapi.h: No such file or directory
I'm not sure why it's not finding kapi.h. It's there in the directory (looked
in the right one this time). Must be a problem with the search paths or
something.
Stephan
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss