From: Vitaly Lipatov <LAV@VL3143.spb.edu> To: Sisyphys List <sisyphus@altlinux.ru> Subject: [sisyphus] Компиляция gcc 3.0.4 программ на C++ Date: Mon, 11 Mar 2002 00:11:37 +0300 Message-ID: <20020310211137.B135B2B77B@VL3143.spb.edu> (raw) Берём пример использования gtk-- /usr/lib/gtkmm/examples/arrow (пакет libgtkmm-devel) На этапе линковки получаем следующее: /usr/lib/libgtkmm.so: undefined reference to `cerr' /usr/lib/libgtkmm.so: undefined reference to `endl(ostream &)' /usr/lib/libgtkmm.so: undefined reference to `__out_of_range(char const *)' /usr/lib/libgtkmm.so: undefined reference to `ostream::operator<<(char const *)'/usr/lib/libgtkmm.so: undefined reference to `__length_error(char const *)' Похоже он не может связать старые библиотеки, написанные на C++, с кодом, откомпилированным gcc 3.0.4. С 2.96 без проблем. Альтернативы все выставлены вроде правильно: [root@lav 4]# [root@lav alternatives]# update-alternatives --config libstdc++.so There are 2 programs which provide `libstdc++.so'. Selection Command ----------------------------------------------- + 1 /usr/lib/gcc-lib/i586-alt-linux/2.96/libstdc++.so * 2 /usr/lib/gcc-lib/i586-alt-linux/3.0.4/libstdc++.so Так же и i586-alt-linux-g++ и i586-alt-linux-gcc указывают на новый компилятор, а gcc и g++ на colorgcc Кто-нибудь пробовал собирать что-то C++-ное? -- Lav Виталий Липатов ФГУП "ЦНИИ Судовой Электротехники и Технологии", Санкт-Петербург GNU! Linux! LaTeX! LyX!
next reply other threads:[~2002-03-10 21:11 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-03-10 21:11 Vitaly Lipatov [this message] 2002-03-10 21:31 ` [sisyphus] " Mikhail Zabaluev 2002-03-10 22:09 ` Vitaly Lipatov 2002-03-10 22:40 ` Aleksey Novodvorsky 2002-03-10 23:02 ` Vitaly Lipatov 2002-03-11 5:37 ` [sisyphus] " Alexey Morozov 2002-03-11 20:05 ` Vitaly Lipatov
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=20020310211137.B135B2B77B@VL3143.spb.edu \ --to=lav@vl3143.spb.edu \ --cc=sisyphus@altlinux.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 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