Mailinglist Archive: opensuse-de (4938 mails)

< Previous Next >
Re: math-library
  • From: stefan.troeger@xxxxxxxxxxxxxxxxxxxxxxxxx (Stefan Troeger)
  • Date: Mon May 22 07:14:39 2000
  • Message-id: <20000522091439.A689@xxxxxxxxxxx>



Hi,

On Mon, May 22 2000 at 07:38 +0200, Matthias Dort wrote:

---cut---
#include <stdio.h>
#include <math.h>
void main (void)
{
printf ("%f", cos (3.14159));
}
---cut---
beim kompilieren passiert folgendes:
[...]
undefined reference to `cos ??

`gcc prog.c -lm' sollte helfen.

Ciao,
Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: suse-linux-unsubscribe@xxxxxxxx
For additional commands, e-mail: suse-linux-help@xxxxxxxx

< Previous Next >
References