Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

[AVR-Chat] GCC Maths problem

2006-01-30 by Colin Paul Gloster

In an email timestamped Mon, 30 Jan 2006 10:31:01 -0000, Richard Reeves 
said:

"[..]
However, if I un-comment the trig=sin(M_PI) line, I get the
error "../gcc_test.c:21: undefined reference to `sin'"

[..], but why is the error saying what it is?"

You should link the math library with the -lm command line switch.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.