[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: c++ hello world help



Kevin Mark wrote:
> Hi D-u,
> I'm trying to get gcc to compile some basic c++ programs and I'm running
into some probably some really basic setup mistakes.
> gcc works with C programs.
> but c++ programs cant find the libs.
> ===================================================~/cpluscplus\% cat
page23.cpp
> #include <iostream.h>
> int main() { cout << "Hello, World!\n"; return 0; }
>
> ~/cpluscplus\% g++ page23.cpp
> In file included from /usr/include/c++/3.3/backward/iostream.h:31, from
page23.cpp:1:
>  /usr/include/c++/3.3/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
[...]
>   I installed libstdc++ and gcc versions 2.95,3.2,3.3
>   WHAT FILES DO I HAVE TO CONFIGURE OR INSTALL!
>   TIA
>   -Kev
>

Just READ the error message is says pretty clear that you should use
<iostream> INSTEAD of <iostream.h>.

Regards/Lep pozdrav

Boštjan Müller
--
[*]   Bostjan Müller | n@neonatus.net | http://n.neonatus.net/    [*] [*]
PGP key --> finger: neonatus@neonatus.net, DSA id: 0x9B2FF108 [*] [*] 
Celular: +38641243189, Powered by GNU/LiNUX - ICQ #:7506644  [*]
   If Bill Gates had a dime for every time a Windows box crashed...
                ...Oh, wait a minute, he already does.







Reply to: