This is the mail archive of the ecos-discuss@sources.redhat.com 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: Implicit declaration of function `printf'.....


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


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