Культурный офтопик
 help / color / mirror / Atom feed
From: Alexander <rope-walker@yandex.ru>
To: "культурный офтопик" <smoke-room@lists.altlinux.org>
Subject: [room] Re: Compile c++
Date: Fri, 28 Oct 2005 20:20:38 +0300
Message-ID: <200510282020.38653.rope-walker@yandex.ru> (raw)
In-Reply-To: <200510281959.13841.rope-walker@yandex.ru>

> Такая проблема:
> [alex@localhost cpp]$ cat test.cpp
> #include <iostream.h>
>
> int main()
> {
>         return 0;
> }
>
> [alex@localhost cpp]$ gcc-3.3 test.cpp
> In file included
> from /usr/include/c++/3.3.3/backward/iostream.h:31,
>                  from test.cpp:1:
> /usr/include/c++/3.3.3/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one deprecated
> or antiquated header. Please consider using one of the 32
> headers found in section 17.4.1.2 of the C++ standard.
> Examples include substituting the <X> header for the <X.h>
> header for C++ includes, or <sstream> instead of the
> deprecated header <strstream.h>. To disable this warning use
> -Wno-deprecated. /home/alex/tmp/cckOtq3k.o(.text+0x36): In
> function
>
> `__static_initialization_and_destruction_0(int, int)':
> : undefined reference to
> : `std::ios_base::Init::Init[in-charge]()'
>
> /home/alex/tmp/cckOtq3k.o(.text+0x65): In function `__tcf_0':
> : undefined reference to `std::ios_base::Init::~Init
> : [in-charge]
>
> ()'
> /home/alex/tmp/cckOtq3k.o(.eh_frame+0x11): undefined reference
> to `__gxx_personality_v0'
> collect2: ld returned 1 exit status
>
> может я что-то не понимаю, или что-то делаю не так,
> подскажите. Вроде программа должна любым компилятором
> компилиться.
вот еще доп. информация:
[alex@localhost cpp]$ gcc-3.3 -v
Reading specs from /usr/lib/gcc-lib/i586-alt-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib 
--with-slibdir=/lib --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --enable-long-long --enable-__cxa_atexit 
--enable-languages=c,c++,f77,objc,treelang,java,ada 
--program-suffix=-3.3 --enable-objc-gc --with-system-zlib 
--without-included-gettext --host=i586-alt-linux 
--build=i586-alt-linux --target=i586-alt-linux
Thread model: posix
gcc version 3.3.3 20040412 (ALT Linux, build 3.3.3-alt5)

-- 
С уважением,
Alex

mailto:rope-walker@yandex.ru - private;
mailto:admin@unixbeginner.com - site admin;
ICQ: 243647806


  reply	other threads:[~2005-10-28 17:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-28 16:59 [room] " Alexander
2005-10-28 17:20 ` Alexander [this message]
2005-10-28 18:03 ` Alexey Rusakov
2005-10-28 18:28   ` Alexey Rusakov
2005-10-29  3:56 ` Vitaly Lipatov
2005-10-29 14:25 ` Денис Смирнов
2005-10-30 12:29 ` Александр Гвоздев
2005-10-30 12:42   ` Andrey Rahmatullin

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=200510282020.38653.rope-walker@yandex.ru \
    --to=rope-walker@yandex.ru \
    --cc=smoke-room@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

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

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

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


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