[room] Re: Compile c++

Alexander =?iso-8859-1?q?rope-walker_=CE=C1_yandex=2Eru?=
Пт Окт 28 21:20:38 MSD 2005


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



Подробная информация о списке рассылки smoke-room