Warning pri kompilaci

Lubomír Odráška lubomir.odraska na prodiss.cz
Pondělí Listopad 10 10:09:01 CET 2003


Zdravicko,
muzete mi nekdo poradit s jednim warningem pri kompilaci? Vesele si pisu zdrojaky a apk jsem pri kompilaci narazil na problemy, vse jsem vyresil, az na jeden. Tak jsem si napsal oprvdu primitivni zdroj v c++, a hlasi mi warning po zadani klasickeho prikazu:

 g++ pokus.cpp -o pokus

chyba:

In file included from /usr/include/c++/3.2/backward/iostream.h:31, from pokus.cpp:1: /usr/include.../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 -Who-deprecated.

zdrojak je fakt primitivni (chvili jsem si myslel, ze neumim napsat ani primitovni kod v c++ :)) )
#include <iostream.h>
int main(void);
int main(void)
{
cout<<"hello, tahats me.";
return 0;
}

nevite nekdo, co s tim? co to po me chce? :))

Lubos



Další informace o konferenci Linux