From: Aleksey Novodvorsky <aen@logic.ru>
To: mandrake-russian@linuxteam.iplabs.ru
Subject: Re: [mdk-re] math.h
Date: Thu Feb 22 06:31:12 2001
Message-ID: <3A94889D.F2BB6A25@logic.ru> (raw)
In-Reply-To: <20010221192117.A44C93A3@earth.universe>
Pavel Marakhovsky wrote:
> Здравствуйте
>
> Начал тут ДЗ делать, и вдруг вот что вылезло:
>
> [root@earth /]# gcc -otest2 ./test2.c
> /tmp/cc4yA1Yt.o: In function `main':
> /tmp/cc4yA1Yt.o(.text+0x14): undefined reference to `sin'
> collect2: ld returned 1 exit status
>
> [root@earth /]# cat test2.c
> #include<stdio.h>
> #include<math.h>
>
> int main(void)
> {
> printf("\n%f\n",sin(2));
> return 0;
> }
>
> Это за глюки? и как бы можно это исправить...
> Спасибо...
[aen@pi aen]$ gcc -lm -otest ./test.c
[aen@pi aen]$ ./test
0.909297
Библиотека libm теперь отдельно.
Rgrds, AEN
next prev parent reply other threads:[~2001-02-22 6:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-22 6:24 Pavel Marakhovsky
2001-02-22 6:31 ` Aleksey Novodvorsky [this message]
2001-02-22 16:22 ` Pavel Marakhovsky
2001-02-24 20:17 ` Mikhail Zabaluev
2001-02-25 8:48 ` Pavel Marakhovsky
2001-02-22 6:36 ` Dmitry V. Levin
2001-02-22 16:22 ` Pavel Marakhovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A94889D.F2BB6A25@logic.ru \
--to=aen@logic.ru \
--cc=mandrake-russian@linuxteam.iplabs.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git