This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: example compile problem
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: ìë <qnlong at aijisystem dot com>
- Cc: eCos discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 01 Nov 2007 11:45:45 +0000
- Subject: [ECOS] Re: example compile problem
- References: <00fa01c81c27$2a9e2a50$c0bdc77a@Joshua>
ìë wrote:
I' m just a begginer of eCos.
and I got a problem when I compile the example which is provided by
ecos-2.0
===============================================================================================================================
[root@122 examples]# make
INSTALL_DIR=/home/qnlong/ecos/Evaluator7/evaluator7_install
arm-elf-gcc -nostartfiles
-L/home/qnlong/ecos/Evaluator7/evaluator7_install/lib -Ttarget.ld
-mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections -Wl,-static -g
-nostdlib -o hello hello.o
/home/qnlong/ecos/Evaluator7/evaluator7_install/lib/libtarget.a(redboot_main.o):
In function `do_go':
/opt/ecos/ecos-2.0/packages/redboot/v2_0/src/main.c:491: undefined
reference to `RedBoot_version'
collect2: ld returned 1 exit status
You are trying to build applications against a build of eCos configured
specifically for building the RedBoot ROM monitor. Only RedBoot should use
that build.
For eCos applications, you should have a separate build. To use the
default one:
ecosconfig new e7t
ecosconfig tree
make
After this you can link your own application. You can also build the eCos
testsuite:
make tests
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------ Opinions==mine
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss