devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Igor Zubkov <igor.zubkov@gmail.com>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] Кто-нибудь знает что значит "undefined reference to" при сборке?
Date: Mon, 17 Sep 2012 12:26:39 +0300
Message-ID: <CAJXf7QO0JZz5=+GS+YOCi=7D2QOveZMMzR_cV_dRQc6AoSrQTA@mail.gmail.com> (raw)
In-Reply-To: <1347873638.30026.7.camel@localhost.localdomain>

2012/9/17 gBopHuk_alt:
> А как добавить линковку?    %add_optflag?

Исправить порядок в котором gcc собирает бинарь. Смысл в том что из-за
изменений в gcc (очередная оптимизация) что бы линковатся правильно,
библиотеки должны в самом конце. Пример:

gcc -o binary *.o -lбиблиотека

иначе, если библиотека будет идти в начале, gcc её выкинет т.к.
символы из неё ещё никто не использует.

Лучше покажите полный вывод сборки и Makefile.am (или сам Makefile
если он не генерируется через automake).

-- 
Igor Zubkov
http://hi.im/ice

  reply	other threads:[~2012-09-17  9:26 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-16 20:29 gBopHuk_alt
2012-09-17  2:34 ` Евгений Ростовцев
2012-09-17  6:44   ` gBopHuk_alt
2012-09-17  8:13     ` Евгений Ростовцев
2012-09-17  9:20       ` gBopHuk_alt
2012-09-17  9:26         ` Igor Zubkov [this message]
2012-09-17 13:08           ` gBopHuk_alt
2012-09-17 13:15             ` Igor Zubkov
2012-09-17 17:06               ` gBopHuk_alt
2012-09-18  2:34                 ` Евгений Ростовцев
2012-09-18  9:31                   ` gBopHuk_alt
2012-09-18 11:28                     ` Евгений Ростовцев
2012-09-18 11:30                       ` Евгений Ростовцев
2012-09-18 13:15                       ` gBopHuk_alt
2012-09-19  3:06                         ` Евгений Ростовцев
2012-09-19  3:10                         ` Евгений Ростовцев
2012-09-20  6:58                           ` gBopHuk_alt
2012-09-20  8:42                             ` Евгений Ростовцев
2012-09-20  9:23                               ` gBopHuk_alt
2012-09-20  9:49                                 ` Евгений Ростовцев
2012-09-20 10:46                                 ` Ivan A. Melnikov
2012-09-20 16:29                                   ` gBopHuk_alt
2012-09-20 16:34                                     ` Евгений Ростовцев
2012-09-20 16:37                                       ` Евгений Ростовцев
2012-09-20 19:07                                         ` gBopHuk_alt
2012-09-21  6:44                                           ` Евгений Ростовцев
2012-09-21  7:28                                             ` gBopHuk_alt
2012-09-21  7:45                                               ` Евгений Ростовцев
2012-09-20 19:01                                       ` gBopHuk_alt
2012-09-21  6:43                                         ` Евгений Ростовцев
2012-09-21  7:31                                           ` gBopHuk_alt
2012-09-21  7:46                                             ` Евгений Ростовцев
2012-09-21  8:50                                             ` Ivan A. Melnikov
2012-09-22 10:46                                               ` Michael Shigorin
2012-09-24 10:55                                               ` gBopHuk_alt
2012-09-17  9:52         ` Евгений Ростовцев
2012-09-17 10:12         ` Michael Shigorin
2012-09-17 11:21         ` Ivan A. Melnikov
2012-09-17 12:35           ` Евгений Ростовцев
2012-09-21 13:06 ` gBopHuk_alt
2012-09-22 10:46   ` Michael Shigorin

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='CAJXf7QO0JZz5=+GS+YOCi=7D2QOveZMMzR_cV_dRQc6AoSrQTA@mail.gmail.com' \
    --to=igor.zubkov@gmail.com \
    --cc=devel-newbies@lists.altlinux.org \
    /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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

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


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