A
Anton Ishmurzin
Greetings All,
I think everybodyknows the answer already. But i
am quite a newbie in c++.
I've got the following line in my code:
ifstream ini_file_in("filename.dat", ios::in);
But, the gcc (GCC) 3.2 spits out some stuff about
deprecated headers:
user@machine:~/prog/src> gcc -Wall extract_data.cpp
In file included from
/usr/include/g++/backward/fstream.h:31,
from extract_data.cpp:3:
/usr/include/g++/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.
extract_data.cpp: In function `int main()':
extract_data.cpp:9: `ios' undeclared (first use
this function)
extract_data.cpp:9: (Each undeclared identifier is
reported only once for each
function it appears in.)
extract_data.cpp:9: parse error before `::' token
extract_data.cpp:11: warning: the address of
`std::ifstream ini_file_in(...)',
will always be `true'
Which include file do i need to allow the ifstream
on this gcc 3.2?
br
Anton.
I think everybodyknows the answer already. But i
am quite a newbie in c++.
I've got the following line in my code:
ifstream ini_file_in("filename.dat", ios::in);
But, the gcc (GCC) 3.2 spits out some stuff about
deprecated headers:
user@machine:~/prog/src> gcc -Wall extract_data.cpp
In file included from
/usr/include/g++/backward/fstream.h:31,
from extract_data.cpp:3:
/usr/include/g++/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.
extract_data.cpp: In function `int main()':
extract_data.cpp:9: `ios' undeclared (first use
this function)
extract_data.cpp:9: (Each undeclared identifier is
reported only once for each
function it appears in.)
extract_data.cpp:9: parse error before `::' token
extract_data.cpp:11: warning: the address of
`std::ifstream ini_file_in(...)',
will always be `true'
Which include file do i need to allow the ifstream
on this gcc 3.2?
br
Anton.