* [mdk-re] math.h
@ 2001-02-22 6:24 Pavel Marakhovsky
2001-02-22 6:31 ` Aleksey Novodvorsky
2001-02-22 6:36 ` Dmitry V. Levin
0 siblings, 2 replies; 7+ messages in thread
From: Pavel Marakhovsky @ 2001-02-22 6:24 UTC (permalink / raw)
To: Linux-Mandrake Russian Edition Mailing List
Здравствуйте
Начал тут ДЗ делать, и вдруг вот что вылезло:
[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;
}
Это за глюки? и как бы можно это исправить...
Спасибо...
----
WBW, Unatine
e-mail: unatine@mail.ru
"There are some qualities, some incorporate things,
That have a double life, which thus is made
A type of twin entity which springs
From matter and light, evinced in solid and shade."
---Edgar Allan Poe, "Silence"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [mdk-re] math.h
2001-02-22 6:24 [mdk-re] math.h Pavel Marakhovsky
@ 2001-02-22 6:31 ` Aleksey Novodvorsky
2001-02-22 16:22 ` Pavel Marakhovsky
2001-02-22 6:36 ` Dmitry V. Levin
1 sibling, 1 reply; 7+ messages in thread
From: Aleksey Novodvorsky @ 2001-02-22 6:31 UTC (permalink / raw)
To: mandrake-russian
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [mdk-re] math.h
2001-02-22 6:31 ` Aleksey Novodvorsky
@ 2001-02-22 16:22 ` Pavel Marakhovsky
2001-02-24 20:17 ` Mikhail Zabaluev
0 siblings, 1 reply; 7+ messages in thread
From: Pavel Marakhovsky @ 2001-02-22 16:22 UTC (permalink / raw)
To: mandrake-russian
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [mdk-re] math.h
2001-02-22 16:22 ` Pavel Marakhovsky
@ 2001-02-24 20:17 ` Mikhail Zabaluev
2001-02-25 8:48 ` Pavel Marakhovsky
0 siblings, 1 reply; 7+ messages in thread
From: Mikhail Zabaluev @ 2001-02-24 20:17 UTC (permalink / raw)
To: mandrake-russian
Hello Pavel,
On Thu, Feb 22, 2001 at 16:09 +0300, Pavel Marakhovsky wrote:
>
> AN> Библиотека libm теперь отдельно.
>
> Спасибо... заработало...:))) а зачем ее вынесли?
Сколько себя помню, она в Unix'ах лежала отдельно.
--
Stay tuned,
MhZ mailto:mookid@sigent.ru
-----------
The most dangerous organization in America today is:
(a) The KKK
(b) The American Nazi Party
(c) The Delta Frequent Flyer Club
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [mdk-re] math.h
2001-02-24 20:17 ` Mikhail Zabaluev
@ 2001-02-25 8:48 ` Pavel Marakhovsky
0 siblings, 0 replies; 7+ messages in thread
From: Pavel Marakhovsky @ 2001-02-25 8:48 UTC (permalink / raw)
To: mandrake-russian
On Sat, 24 Feb 2001 19:33:45 +0300
Mikhail Zabaluev <mookid@sigent.ru> wrote:
MZ> Hello Pavel,
MZ>
MZ> On Thu, Feb 22, 2001 at 16:09 +0300, Pavel Marakhovsky wrote:
MZ> >
MZ> > AN> Библиотека libm теперь отдельно.
MZ> >
MZ> > Спасибо... заработало...:))) а зачем ее вынесли?
MZ>
MZ> Сколько себя помню, она в Unix'ах лежала отдельно.
Пока glibc не обновлял вроде все нормально было.....
----
WBW, Unatine
e-mail: unatine@mail.ru
"With the proper tools, even the Great River can be dammed."
---Ta-Spon, Cho-Arrim executioner
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [mdk-re] math.h
2001-02-22 6:24 [mdk-re] math.h Pavel Marakhovsky
2001-02-22 6:31 ` Aleksey Novodvorsky
@ 2001-02-22 6:36 ` Dmitry V. Levin
2001-02-22 16:22 ` Pavel Marakhovsky
1 sibling, 1 reply; 7+ messages in thread
From: Dmitry V. Levin @ 2001-02-22 6:36 UTC (permalink / raw)
To: Linux-Mandrake Russian Edition Mailing List
[-- Attachment #1: Type: text/plain, Size: 828 bytes --]
On Wed, Feb 21, 2001 at 10:21:16PM +0300, 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
Все правильно, вы не включили libm.so:
gcc -otest2 ./test2.c -lm
Regards,
Dmitry
+-------------------------------------------------------------------------+
Dmitry V. Levin mailto://ldv@fandra.org
Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html
IPLabs Linux Team http://linux.iplabs.ru
Fandra Project http://www.fandra.org
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [mdk-re] math.h
2001-02-22 6:36 ` Dmitry V. Levin
@ 2001-02-22 16:22 ` Pavel Marakhovsky
0 siblings, 0 replies; 7+ messages in thread
From: Pavel Marakhovsky @ 2001-02-22 16:22 UTC (permalink / raw)
To: mandrake-russian
On Thu, 22 Feb 2001 06:37:48 +0300
"Dmitry V. Levin" <ldv@fandra.org> wrote:
DVL> On Wed, Feb 21, 2001 at 10:21:16PM +0300, Pavel Marakhovsky wrote:
DVL> > Начал тут ДЗ делать, и вдруг вот что вылезло:
DVL>
DVL> ДЗ под рутом???
Сейчас уже не хочется настраивать нового пользователя (хотя зайти получилось.... нашел в чем причина была)
Лучше подожду пока 7.2RE выйдет, тогда просто все по новой поставлю, и там уже буду нормально работать...
----
WBW, Unatine
e-mail: unatine@mail.ru
"Everything around here has a cut deal with gravity."
---Gerrard of the Weatherlight
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-02-25 8:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-22 6:24 [mdk-re] math.h Pavel Marakhovsky
2001-02-22 6:31 ` Aleksey Novodvorsky
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
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