NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Basic Electronics » What kind of error is this?

January 23, 2014
by oshjdf
oshjdf's Avatar
/usr/lib/gcc/avr/4.3.4/../../../avr/lib/avr5/libc.a(cmpsf2.o):../../../libm/fplib/cmpsf2.S:58: multiple definition of `__ltsf2'
/usr/lib/gcc/avr/4.3.4/avr5/libgcc.a(_lt_sf.o):(.text+0x0): first defined here
January 23, 2014
by scootergarrett
scootergarrett's Avatar

I would need more than this. have you loaded any programs on the Nerdkit yet?

January 23, 2014
by BobaMosfet
BobaMosfet's Avatar

It's telling you that you have too many duplicate definitions of '__ltsf2'. In the code. If they are all the same, you can find them and #ifndef them.


January 23, 2014
by Noter
Noter's Avatar

If you search the web on "multiple definition of __ltsf2" you will find several references and solutions. The most common solution is to include "-lm" a second time in the avr-gcc command in your make file. See search results for more detail.

Post a Reply

Please log in to post a reply.

Did you know that a microcontroller can measure an RC time constant? Learn more...