* if somebody can tell why this warnign is there?/
@ 2005-01-10 12:40 Ankit Jain
2005-01-10 12:44 ` Ali Reza
0 siblings, 1 reply; 2+ messages in thread
From: Ankit Jain @ 2005-01-10 12:40 UTC (permalink / raw)
To: linux prg
[ankit@rinku ankit]$ g++ test.cpp
In file included from
/usr/include/c++/3.2.2/backward/iostream.h:31,
from test.cpp: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 usin
g 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 <s
stream> instead of the deprecated header
<strstream.h>. To disable this warning
use -Wno-deprecated.
[ankit@rinku ankit]$ cat test.cpp
#include<iostream.h>
int main()
{
printf("It is working\n");
return 0;
}
[ankit@rinku ankit]$
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: if somebody can tell why this warnign is there?/
2005-01-10 12:40 if somebody can tell why this warnign is there?/ Ankit Jain
@ 2005-01-10 12:44 ` Ali Reza
0 siblings, 0 replies; 2+ messages in thread
From: Ali Reza @ 2005-01-10 12:44 UTC (permalink / raw)
To: 'Ankit Jain', 'linux prg'
I don't know if this group is the right place to post such queries...well
its quite obvious - you are using the deprecated headers i.e. thos that end
with .h - Instead use the standardized iostream with namespace std
The following code should do fine!
#include <iostream>
int main()
{
std::cout << "It is working " << std::endl;
return 0;
}
OR
#include <iostream>
Using namespace std
int main()
{
cout << "It is working " << endl;
return 0;
}
Cheers / Ali
-----Original Message-----
From: linux-c-programming-owner@vger.kernel.org
[mailto:linux-c-programming-owner@vger.kernel.org] On Behalf Of Ankit Jain
Sent: Monday, January 10, 2005 6:10 PM
To: linux prg
Subject: if somebody can tell why this warnign is there?/
[ankit@rinku ankit]$ g++ test.cpp
In file included from
/usr/include/c++/3.2.2/backward/iostream.h:31,
from test.cpp: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 usin
g 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 <s
stream> instead of the deprecated header
<strstream.h>. To disable this warning
use -Wno-deprecated.
[ankit@rinku ankit]$ cat test.cpp
#include<iostream.h>
int main()
{
printf("It is working\n");
return 0;
}
[ankit@rinku ankit]$
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-10 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 12:40 if somebody can tell why this warnign is there?/ Ankit Jain
2005-01-10 12:44 ` Ali Reza
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).