The C library is another package: msp430-libc.  Looks like that's missing.

Peter

On Thu, Aug 16, 2012 at 6:49 PM, Tiago Angelo
<almost.electronic.engin...@gmail.com> wrote:
> Good night, I have tried to start my journey across the MSP430 world, and
> thing aren't going very good.
> I have started by compiling my own compiler, but when trying to compile my
> first test code I got this error:
> msp430-gcc -Wall -g -Os  -mmcu=msp430g2553 -o simpleSwitch.elf main.c
> /usr/lib/gcc/msp430/4.6.3/../.
> ./../../msp430/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make: *** [simpleSwitch.elf] Error 1
>
> After thinking that it was a badly compiled msp-gcc I removed it, added the
> Debian repo to the Ubuntu Software Sources and installed this .deb:
> http://packages.debian.org/unstable/main/gcc-msp430
>
> But I still get the same error, the source and makefile were pointed to me
> by Mr. Barr5790 from the 43oh foruns, here is the links:
> https://github.com/alanbarr/msp430-launchpad/blob/master/examples/switchLeds/makefile
> https://github.com/alanbarr/msp430-launchpad/blob/master/examples/switchLeds/main.c
>
> Alse if it helps this is the path that the msp430mcu reports:
> senso@lolstation:~$ msp430mcu-config --scriptpath
> /home/senso/local/msp430//msp430/lib/ldscripts
>
> Thanks in advance.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to