ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] clock_gettime
@ 2007-02-09 13:17 Epiphanov Sergei
  2007-02-09 13:29 ` Epiphanov Sergei
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Epiphanov Sergei @ 2007-02-09 13:17 UTC (permalink / raw)
  To: Рассылка Sisyphus

В man есть описание функции clock_gettime, но при попытке её использовать 
получаю:

realtime2.c:(.text+0x6a): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status

Она рабочая? Или вместо неё надо использовать другую?

-- 
С уважением, Епифанов Сергей


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sisyphus] clock_gettime
  2007-02-09 13:17 [sisyphus] clock_gettime Epiphanov Sergei
@ 2007-02-09 13:29 ` Epiphanov Sergei
  2007-02-09 13:32 ` A.Kitouwaykin
  2007-02-09 14:09 ` ABATAPA
  2 siblings, 0 replies; 4+ messages in thread
From: Epiphanov Sergei @ 2007-02-09 13:29 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

В сообщении от Friday 09 February 2007 16:17 Epiphanov Sergei написал(a):
> В man есть описание функции clock_gettime, но при попытке её использовать
> получаю:
>
> realtime2.c:(.text+0x6a): undefined reference to `clock_gettime'
> collect2: ld returned 1 exit status
>
> Она рабочая? Или вместо неё надо использовать другую?

Всё, нашёл в librt.so, неправильно библиотеки подключались. Спасибо.

-- 
С уважением, Епифанов Сергей


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sisyphus] clock_gettime
  2007-02-09 13:17 [sisyphus] clock_gettime Epiphanov Sergei
  2007-02-09 13:29 ` Epiphanov Sergei
@ 2007-02-09 13:32 ` A.Kitouwaykin
  2007-02-09 14:09 ` ABATAPA
  2 siblings, 0 replies; 4+ messages in thread
From: A.Kitouwaykin @ 2007-02-09 13:32 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

On Fri, 9 Feb 2007 16:17:34 +0300
Epiphanov Sergei <serpiph@nikiet.ru> wrote:

> В man есть описание функции clock_gettime, но при попытке её использовать 
> получаю:
> 
> realtime2.c:(.text+0x6a): undefined reference to `clock_gettime'
> collect2: ld returned 1 exit status
> 
> Она рабочая? Или вместо неё надо использовать другую?
> 

gcc/ld -lrt ?

> -- 
> С уважением, Епифанов Сергей
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus

-- 
Китайкин Анатолий Константинович
ОАО "Радиоавионика", СПб


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sisyphus] clock_gettime
  2007-02-09 13:17 [sisyphus] clock_gettime Epiphanov Sergei
  2007-02-09 13:29 ` Epiphanov Sergei
  2007-02-09 13:32 ` A.Kitouwaykin
@ 2007-02-09 14:09 ` ABATAPA
  2 siblings, 0 replies; 4+ messages in thread
From: ABATAPA @ 2007-02-09 14:09 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Пятница 09 февраля 2007, Epiphanov Sergei написал:
> realtime2.c:(.text+0x6a): undefined reference to `clock_gettime'
> collect2: ld returned 1 exit status
>
> Она рабочая? Или вместо неё надо использовать другую?

Вы линковать-то не забываете? ;)

-- 
ABATAPA


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-09 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-09 13:17 [sisyphus] clock_gettime Epiphanov Sergei
2007-02-09 13:29 ` Epiphanov Sergei
2007-02-09 13:32 ` A.Kitouwaykin
2007-02-09 14:09 ` ABATAPA

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git