public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Compilation problem with gcc 3.2 on Mandrake 9.0
@ 2002-12-24  9:57 Patrick H. E. Foubet
  2002-12-24 10:14 ` Gabriel Dos Reis
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick H. E. Foubet @ 2002-12-24  9:57 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compilation problem with gcc 3.2 on Mandrake 9.0
  2002-12-24  9:57 Compilation problem with gcc 3.2 on Mandrake 9.0 Patrick H. E. Foubet
@ 2002-12-24 10:14 ` Gabriel Dos Reis
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Dos Reis @ 2002-12-24 10:14 UTC (permalink / raw)
  To: Patrick H. E. Foubet; +Cc: gcc

"Patrick H. E. Foubet" <foubet@seriane.fr> writes:

| #include <iostream>
| int main(void)
| {
|     cout << "Hello World !" << endl;

This is a FAQ.  
The C++ standard library is put in the namespace std.  Please,
consider a recent book on C++ like the third edition of "The C++
Programming Language" by B. Stroustrup.

[...]

| Is it normal ?

Yes.

-- Gaby

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-24 10:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-24  9:57 Compilation problem with gcc 3.2 on Mandrake 9.0 Patrick H. E. Foubet
2002-12-24 10:14 ` Gabriel Dos Reis

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 read-only IMAP folder(s) and NNTP newsgroup(s).