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: eCOS configuration


On Wed, 2002-10-16 at 00:06, Mildred Frisco wrote:
> 
> 
> I have done a test configuration for the ecos kernel using:
> 
>  # ecosconfig new assabet kernel
>  # make tree
>  # make tests
> 
> The compile generated no errors and produced the directories include, lib
> and tests under install.  I have also created the libsupc++.a file under the
> install/lib directory
> I tried to compile/link   the hello.c application program but there was an
> error:
> 
> /tmp/ccK0iSUx.o: in function main
> hello.c:5:  undefined reference to printf
> 
> I tried to look for the ccKiSUx.o but I can't find it.
> 
> Here is the hello.c program:
> 
> #include <stdio.h>
> 
> int main()
> {
> 	printf("hello");
> 	return 0;
> }
> 
> 
> 
> Please help.  Thank you very much.

Your configuration doesn't include "printf", which is defined
in the libc/stdio package.

Try rebuilding with a more inclusive template, e.g.
  $ ecosconfig new assabet all

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


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


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