This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: pow(),cos() ....
- To: Alex Kononov <a dot kononov at lr dot tudelft dot nl>
- Subject: Re: pow(),cos() ....
- From: brent verner <brent at rcfile dot org>
- Date: Tue, 26 Sep 2000 06:08:25 -0400
- Cc: gcc <gcc at gcc dot gnu dot org>
- References: <39D07541.5524C8ED@lr.tudelft.nl>
On 26 Sep 2000 at 12:06 (+0200), Alex Kononov wrote:
| A very simple math c-program lile this
[example snipped]
| udefined reference to 'pow'
| udefined reference to 'cos'
|
| What am I doing whrong?
not linking to the math library. try this.
gcc ctest.c -o ctest -lm
hth.
b
--
Damon Brent Verner o _ _ _
Cracker JackŪ Surprise Certified _o /\_ _ \\o (_)\__/o (_)
brent@rcfile.org _< \_ _>(_) (_)/<_ \_| \ _|/' \/
brent@linux1.org (_)>(_) (_) (_) (_) (_)' _\o_