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

Re: problema con g++



El Thu, Jan 27, 2005 at 02:23:15PM +0100 Manuel Salvador Lopez Gil ha dit:

> Al intentar compilar este programa
> 
> #include <iostream.h>
            ~~~~~~~~~~
debería ser

#include <iostream>

sin la extensión .h

> #include <time.h>
> #include <math.h>
> 
> int main(void)
> {
>  cout << "hola mundo" ;

aquí tendrás el problema que g++ 3 a cambio de v2 ya no asume por defecto que usas el
namespace std, así tendrás que poner std::cout o 'using namespace std'
antes de main()

m.

-- 
            The only true wisdom is in knowing you know nothing
                               (Socrates)

           ( ( ( i ) ) )  http://indymedia.org  ( ( ( i ) ) )
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver keys.indymedia.org --recv-keys B9A88F6F           `-

Attachment: signature.asc
Description: Digital signature


Reply to: