Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

iostream.h

[es] :: C/C++ programiranje :: iostream.h

[ Pregleda: 3576 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

InfHeat
Novi Sad

Član broj: 715
Poruke: 126
*.neobee.net



+6 Profil

icon iostream.h18.09.2003. u 18:23 - pre 223 meseci
[[email protected] home]$ gcc test.cxx -o test
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
from test.cxx:1:
/usr/include/c++/3.2.2/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.
/tmp/ccinUPZW.o(.text+0x19): In function `main':
: undefined reference to `std::cout'
/tmp/ccinUPZW.o(.text+0x1e): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/ccinUPZW.o(.text+0x4a): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/ccinUPZW.o(.text+0x79): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/ccinUPZW.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[[email protected] home]$

A ovako izgleda test.cxx

#include <iostream.h>

int main()
{
cout << "tekst\n";
return 0;
}
------------------------------

Totalni sam pocetnik, primer je iz knjige ,kontam da nisam nista pogresno prepisao.Pomagajte sta se desava!!!
 
Odgovor na temu

filmil
Filip Miletić
Oce Technologies B.V., inženjer
hardvera
Arcen, NL

Član broj: 243
Poruke: 2114
*.adsl.zonnet.nl

Jabber: filmil@jabber.org
ICQ: 36601391


+3 Profil

icon Re: iostream.h18.09.2003. u 18:59 - pre 223 meseci
http://www.elitesecurity.org/tema/29509/0#202798
 
Odgovor na temu

brcha
Filip Brčić
Beograd, Serbia

Član broj: 440
Poruke: 436

Jabber: brcha@kdetalk.net
ICQ: 40994923
Sajt: www.brcha.iz.rs


+2 Profil

icon Re: iostream.h18.09.2003. u 20:09 - pre 223 meseci
i ne samo using namespace std;, nego i g++ umesto gcc da ne bi dobijao ld errore.
... and the aliens sent an android down to earth, to slow down mankind's development
... and they named it Bill Gates.
 
Odgovor na temu

[es] :: C/C++ programiranje :: iostream.h

[ Pregleda: 3576 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.