This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hello world app SEG faults with Linux synth target


On Thu, Jul 23, 2009 at 02:11:15PM +0300, Sergei Gavrikov wrote:
> It's strange if stdiooutput ouputs, but hello.
> 
> Try append in hello.c before to exit.
> 
> fflush(stdout);

I hope that your greeting is terminated by NL. Check it! If it is
buffering issue, try

fprintf(stderr, "hello, world!\n");

may be `setvbuf' (man setvbuf) will be useful for you.

Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]