ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] сборка проги с gtk+, проблема
@ 2008-02-13 12:19 Denis G. Samsonenko
  2008-02-13 12:30 ` Damir Shayhutdinov
  0 siblings, 1 reply; 3+ messages in thread
From: Denis G. Samsonenko @ 2008-02-13 12:19 UTC (permalink / raw)
  To: community

День добрый!

Пытаюсь собрать одну требующую gtk+ программку
(http://www.st.hirosaki-u.ac.jp/~rmiya/xmolwt/xmolwt-e.html) в rpm
пакет, используя тот spec, что идёт тарболе.

При сборке получаю сообщения об ошибке:

gcc `gtk-config --libs` molwt.o usage.o element.o reduce.o count.o
calculate.o initwidget.o allowcase.o inputformula.o addtolist.o
atomicnumber.o -o gmolwt
molwt.o: In function `main1':
molwt.c:(.text+0x14): undefined reference to `gtk_init'
molwt.c:(.text+0x20): undefined reference to `gtk_window_new'
molwt.c:(.text+0x35): undefined reference to `gtk_widget_set_name'
molwt.c:(.text+0x44): undefined reference to `gtk_main'
...
collect2: ld returned 1 exit status
make: *** [gmolwt] Ошибка 1


С чем это связано? gtk+-devel стоит.

-- 
Всего доброго,

Денис.

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

* Re: [Comm] сборка проги с gtk+, проблема
  2008-02-13 12:19 [Comm] сборка проги с gtk+, проблема Denis G. Samsonenko
@ 2008-02-13 12:30 ` Damir Shayhutdinov
  2008-02-14  6:12   ` Denis G. Samsonenko
  0 siblings, 1 reply; 3+ messages in thread
From: Damir Shayhutdinov @ 2008-02-13 12:30 UTC (permalink / raw)
  To: ALT Linux Community general discussions

> При сборке получаю сообщения об ошибке:
>
> gcc `gtk-config --libs` molwt.o usage.o element.o reduce.o count.o
> calculate.o initwidget.o allowcase.o inputformula.o addtolist.o
> atomicnumber.o -o gmolwt
> molwt.o: In function `main1':
> molwt.c:(.text+0x14): undefined reference to `gtk_init'
> molwt.c:(.text+0x20): undefined reference to `gtk_window_new'
> molwt.c:(.text+0x35): undefined reference to `gtk_widget_set_name'
> molwt.c:(.text+0x44): undefined reference to `gtk_main'
> ...
> collect2: ld returned 1 exit status
> make: *** [gmolwt] Ошибка 1
>
>
> С чем это связано? gtk+-devel стоит.
c --as-needed

Перенесите `gtk-config --libs` в конец строки компиляции.

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

* Re: [Comm] сборка проги с gtk+, проблема
  2008-02-13 12:30 ` Damir Shayhutdinov
@ 2008-02-14  6:12   ` Denis G. Samsonenko
  0 siblings, 0 replies; 3+ messages in thread
From: Denis G. Samsonenko @ 2008-02-14  6:12 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Привет!

13.02.08, Damir Shayhutdinov написал:
> Перенесите `gtk-config --libs` в конец строки компиляции.

Спасибо! Помогло.

-- 
Всего доброго,

Денис.

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

end of thread, other threads:[~2008-02-14  6:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 12:19 [Comm] сборка проги с gtk+, проблема Denis G. Samsonenko
2008-02-13 12:30 ` Damir Shayhutdinov
2008-02-14  6:12   ` Denis G. Samsonenko

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