Re: Fwd: [arm-gnu] printf problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: [arm-gnu] printf problem
- To: "Nathan Sidwell" <nathan@xxxxxxxxxxxxxxxx>, arm-gnu@xxxxxxxxxxxxxxxx
- Subject: Re: Fwd: [arm-gnu] printf problem
- From: ravi <ravishankar.rangam@xxxxxxxxx>
- Date: Fri, 14 Mar 2008 14:16:05 +0530
I have provided those dummy functions. But my program hangs in sprintf().
How to resolve this?
On Fri, Mar 14, 2008 at 2:09 PM, Nathan Sidwell <nathan@xxxxxxxxxxxxxxxx>
wrote:
> ravi wrote:
> > hi,
> >
> > In my case the problem is with sprintf(). Is this function also hardware
> > specific?
> > In my code, i have used sprintf() like this
> >
> > void fun1()
> > {
> > char buf[100];
> > ......
> > ......
> > ......
> > sprintf(buf, "Hello world\n");
> > ......
> > ......
> > }
> >
> > When I use sprintf(), i got errors like
> > ** undefined reference to __write
> > ** undefined reference to __read
> > ** undefined reference to __open
> > ** undefined reference to __lseek
> > ** undefined reference to __fstat
> > ** undefined reference to __makebuf
> > ** undefined reference to __errno
>
> these are a known issue. newlib is insufficiently modular to not pull in
> the IO
> functions when sprintf is used. You still need to provide dummy
> implementations
> of those functions.
>
> nathan
>
> --
> Nathan Sidwell :: http://www.codesourcery.com ::
> CodeSourcery
>
>
--
regards
ravi