[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] library
From: |
Larry Barello |
Subject: |
Re: [avr-gcc-list] library |
Date: |
Fri, 25 Jan 2002 08:54:48 -0800 |
Add '-lm' to your linker options to get the user supplied (thanks
Michael Stumpf!) libraries. The standard libraries don't have the
routines you want and are big, fat and slow (but portable code!).
>From my makefile...
LDFLAGS = -Wl,-lm,-Map=$(<:.o=.gcc),--cref,-v -mmcu=$(GCCMCU)
...
%elf: %o
$(CC) $< $(GCCLIB) $(LDFLAGS) -o $@
----- Original Message -----
From: "Glen Bankston" <address@hidden>
...
>
> Using my own program, I have used sin, cos, acos, etc in my code,
and the
> linker
> said it cannot find those routines.
>
> How do I fix this? I see all the source in fplib folder, and did
another
> build.
> Apparently, these are declared extern in the math.h file. Is there
> something
> extra I must do?
avr-gcc-list at http://avr1.org