[ECOS] Getting and compiling ECOS or is there an archive?

Linux HA linuxha@comcast.net
Mon Mar 21 03:50:00 GMT 2005


Gary Thomas wrote:

> You could try this example:
>   http://www.mlbassoc.com/examples/build_hello.html
> Just use your desired platform (eb40a) where it uses "viper"


Gary thanks for the example and it's Howto. I now get this error:

arm-elf-gcc -c -mthumb-interwork -mcpu=arm7tdmi -mno-short-load-words -Wall 
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g 
-O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc 
-finit-priority -I/tmp/redboot_ROM/install/include hello.c
hello.c: In function `main':
hello.c:5: warning: implicit declaration of function `printf'
hello.c:6: warning: implicit declaration of function `exit'
arm-elf-gcc -mthumb-interwork -mcpu=arm7tdmi -mno-short-load-words 
-Wl,--gc-sections -Wl,-static -g -nostdlib -L/tmp/redboot_ROM/install/lib 
-Ttarget.ld hello.o -o hello
/tmp/redboot_ROM/install/lib/libtarget.a(redboot_main.o): In function `cyg_start':
/tmp/redboot_ROM/install/include/cyg/hal/hal_if.h:601: undefined reference to 
`RedBoot_version'
collect2: ld returned 1 exit status
make: *** [hello] Error 1

I think I figured out what's going on/ It compiles
version.c but I doubt it's being put into the lib
file. When I add

  /tmp/redboot_ROM/install/lib/version.o

to the arm-elf-gcc line it compiles.

-- 
Linux Home Automation                 Neil Cherry
http://home.comcast.net/~ncherry/     (Text only)
http://hcs.sourceforge.net/           (HCS II & HCS_C)
http://linuxha.blogspot.com/          My HA Blog

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



More information about the Ecos-discuss mailing list