This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compilation problem with gcc 3.2 on Mandrake 9.0
- From: "Patrick H. E. Foubet" <foubet at seriane dot fr>
- To: gcc at gnu dot org
- Date: Tue, 24 Dec 2002 11:08:59 +0000
- Subject: Compilation problem with gcc 3.2 on Mandrake 9.0
- Organization: S.E.R.I.A.N.E.
Hi every body,
I work with the GNU gcc v 3.2 on Mandrake 9.0
For information, when I execute "gcc -v" I get :
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking
--enable-long-long --enable-__cxa_atexit
--enable-languages=c,c++,ada,f77,objc,java
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
I think that there are some problems but I want to be sure that it is
not in your part.
For instance, consider a simple program (hello.cpp) like this :
#include <iostream>
int main(void)
{
cout << "Hello World !" << endl;
}
when I compile il with "g++ hello.cpp" I get :
hello.cpp: In function `int main()':
hello.cpp:6: `cout' undeclared (first use this function)
hello.cpp:6: (Each undeclared identifier is reported only once for each
function it appears in.)
hello.cpp:6: `endl' undeclared (first use this function)
If I replace <iostream> by <iostream.h> it works but I get :
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from hello.cpp:2:
/usr/include/c++/3.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.
Is it normal ?
Merry Christmas and best regards.
Patrick
--
Informatique S.E.R.I.A.N.E. http://www.seriane.fr/
79-81 avenue Daničle CASANOVA
B.P. 136 tel : 01 49 59 05 55
94208 IVRY sur Seine Cedex fax : 01 49 60 84 57