[room] Compile c++
Alexander
=?iso-8859-1?q?rope-walker_=CE=C1_yandex=2Eru?=
Пт Окт 28 20:59:13 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
Подробная информация о списке рассылки smoke-room