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

Re: problemi con stdlibc++



problema risolto! grazie tante


On Monday 29 December 2003 20:00, Cage wrote:
> On Monday 29 December 2003, alle 18:23, Sergio Della Santina wrote:
> > ciao a tutti,
>
> Ciao!
>
> > sto provando per la prima volta ad usare la libreria standard del c++.
> > ho installati gcc 3.3 e libstdc++5-3.3.
> >
> > Nel compilare questo stupidissimo esempio di un libro:
>
> CUT
>
> > ottengo i seguenti errori:
>
> CUT
>
> > qualcuno sa spiegarmi come risolvere?
>
> Il problema e' che le dichiarazioni degli elementi che includi si
> trovano nel namespace standard,
>
> Soluzione brutale: prova ad aggiungere "using namespace std;" dopo gli
> "#include".
>
> Inoltre:
> >#include <stdlib.h>
>
> e' fuori standard, dovresti usare:
>
> #include <cstdlib>
>
> Ciao.
> C.
>
> --
> Cage - Just another Debian user
> Autoproclamatosi fan N°1 di Sucaman
> http://www.autistici.org/interzona/
> zetalab: http://www.inventati.org/zetalab/



Reply to: