Культурный офтопик
 help / color / mirror / Atom feed
* [room] Compile c++
@ 2005-10-28 16:59 Alexander
  2005-10-28 17:20 ` [room] " Alexander
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Alexander @ 2005-10-28 16:59 UTC (permalink / raw)
  To: культурный
	офтопик

Такая проблема:
[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


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

end of thread, other threads:[~2005-10-30 12:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 16:59 [room] Compile c++ Alexander
2005-10-28 17:20 ` [room] " Alexander
2005-10-28 18:03 ` [room] " 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

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

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