This is the mail archive of the ecos-discuss@sourceware.org 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: example compile problem


ìë 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


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