_unexpected_ is defined in libc.a, which you are not including.
Try using msp430-gcc instead of msp430-ld as the linker. That's usually
safer when linking code compiled in higher-level languages where
language-specific runtime support is needed. (-lgcc is not sufficient in
this case. -lc might be enough.)
Peter
On Sat, Sep 25, 2010 at 12:51 PM, Claude Sylvain <
[email protected]> wrote:
> Hello,
>
> - I am currently trying MSPGCC4 under Cygwin (1.7.x)/Window XP
> professional.
> The MSPGCC4 package I use is "mspgcc4-20100829.tar.bz2", and was
> compiled under Cygwin.
>
> - I try to port to MSPGCC4 a project that built correctly with MSPGCC, and
> I have the following linker error:
>
> +++
> msp430-ld ./obj/common/delay.o ./obj/common/misc.o
> ./obj/drivers/uart/uart2.o
> ./obj/app/hb.o ./obj/app/main.o ./obj/app/test.o
> ./obj/common/ach_con.o ./
> obj/drivers/led.o ./obj/drivers/timera.o ./obj/drivers/tp.o
> ./obj/drivers/fla
> sh/flash_idle.o ./obj/kernel/kernel.o ./obj/mcu/mcu_init.o
> -Tmsp430x1121.x -Ma
> p=./out/app.map --cref --no-warn-mismatch
> -L/opt/mspgcc4/lib/gcc/msp430/4.4.4/ -
> L/opt/mspgcc4/msp430/lib/ -lgcc -o out/app.elf
> /opt/mspgcc4/msp430/lib//crt430x1121.o: In function `vector_fffc':
> (.text+0x2): undefined reference to `_unexpected_'
> make: *** [out/app.elf] Error 1
> +++
>
>
> - After some makefile and linker script revision, I can not figure out
> what can produce this error.
>
>
> Any help will be appreciated.
> Claude.
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users