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: RedBoot/Hello World


Chris Hanna wrote:
> 
> Hi.
> 
> I have built RedBoot and have it running on my board. I would like to build
> the hello.c example program, and load it and run it in RedBoot. Should I
> build hello using the libtarget.a created when I built RedBoot ?
> I try this, but the linker complains:
> 
> /opt/ecos/rb-lx2/examples/hello.c:6: undefined reference to `printf'
> /opt/ecos/rb-lx/install/lib/libtarget.a(redboot_main.o): In function
> `do_version':
> /opt/ecos/ecos/packages/redboot/current/src/main.c:152: undefined reference
> to `RedBoot_version'

Nope. Rebuild using the default template, not the redboot one and use that.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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