This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Implicit declaration of function `printf'.....
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Evandro Newuald <evandro at gmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 8 Mar 2005 20:52:04 +0100
- Subject: Re: [ECOS] Implicit declaration of function `printf'.....
- References: <c65b1e7405030712083af0e267@mail.gmail.com>
On Mon, Mar 07, 2005 at 12:08:43PM -0800, Evandro Newuald wrote:
> Hello all,
>
> I would like to perform an application on mips platform. I loaded
> Template TX39 minimal simulator.When I performed the GNU make utility,
> I get the folowing error:
>
>
> bash-2.05b$ make
> mips-tx39-elf-gcc -c -o basic1.o -g -Wall -I/cygwin/work/mips_install/include -I
> usr/include -ffunction-sections -fdata-sections basic1.c
> basic1.c:2:19: stdio.h: No such file or directory
> basic1.c: In function `main':
> basic1.c:7: warning: implicit declaration of function `printf'
> make: *** [basic1.o] Error 1
I suggest you read the the eCos user guide and in particular
http://ecos.sourceware.org/docs-latest/user-guide/building-and-running-sample-appliations.html
That will show you the correct way to build applications. You can also
take a look at the examples, which include a working makefile.
http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos/examples/?cvsroot=ecos
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss