This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Makefile, libs and linkage


On 2005-03-20 at 02:58:47 chuck wrote:

>     sun.o(.text+0x164): In function `suntimes':
>     : undefined reference to `sin'
>     sun.o(.text+0x18c): In function `suntimes':
>     : undefined reference to `cos'

These are functions from the math library, libm.  Just append "-lm" to
your linking command line.

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]