From: Pavel Marakhovsky <_troggy_@mtu-net.ru>
To: mandrake-russian@linuxteam.iplabs.ru
Subject: Re: [mdk-re] math.h
Date: Thu Feb 22 16:22:58 2001
Message-ID: <20010222130955.386CA344@earth.universe> (raw)
In-Reply-To: <3A94889D.F2BB6A25@logic.ru>
On Thu, 22 Feb 2001 06:33:49 +0300
Aleksey Novodvorsky <aen@logic.ru> wrote:
AN> Pavel Marakhovsky wrote:
AN>
AN> > Здравствуйте
AN> >
AN> > Начал тут ДЗ делать, и вдруг вот что вылезло:
AN> >
AN> > [root@earth /]# gcc -otest2 ./test2.c
AN> > /tmp/cc4yA1Yt.o: In function `main':
AN> > /tmp/cc4yA1Yt.o(.text+0x14): undefined reference to `sin'
AN> > collect2: ld returned 1 exit status
AN> >
AN> > [root@earth /]# cat test2.c
AN> > #include<stdio.h>
AN> > #include<math.h>
AN> >
AN> > int main(void)
AN> > {
AN> > printf("\n%f\n",sin(2));
AN> > return 0;
AN> > }
AN> >
AN> > Это за глюки? и как бы можно это исправить...
AN> > Спасибо...
AN>
AN> [aen@pi aen]$ gcc -lm -otest ./test.c
AN> [aen@pi aen]$ ./test
AN>
AN> 0.909297
AN>
AN> Библиотека libm теперь отдельно.
Спасибо... заработало...:))) а зачем ее вынесли?
AN> Rgrds, AEN
----
WBW, Unatine
e-mail: unatine@mail.ru
He doesn't have to be smart--his masters only ever give him one command.
next prev parent reply other threads:[~2001-02-22 16:22 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
2001-02-22 16:22 ` Pavel Marakhovsky [this message]
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=20010222130955.386CA344@earth.universe \
--to=_troggy_@mtu-net.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