help-gplusplus
[Top][All Lists]
Advanced

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

simple program does not compile with g++-4.3 but with g++-4.2


From: Emanoil Kotsev
Subject: simple program does not compile with g++-4.3 but with g++-4.2
Date: Thu, 20 Aug 2009 22:05:03 +0200
User-agent: KNode/0.10.9

Hello, I'm trying to learn a bit more of c++. Unfortunately what was working
in g++ 4.2 is not working in 4.3 anymore. Why? I don't think I'm suppose to
be changing my code because of this or knowing what somebody did change in
the compiler. Perhaps I'm missing something like compatibility for 4.3.

I'm using debian stable. Thanks in advance

----- test code ----------
#include <iostream.h>

int main()
   {
     cout << "The size of an int is:\t\t"    << sizeof(int)    << " bytes
\n";
     cout << "The size of a short int is:\t" << sizeof(short)  << " bytes
\n";
     cout << "The size of a long int is:\t"  << sizeof(long)   << " bytes
\n";
     cout << "The size of a char is:\t\t"    << sizeof(char)   << " bytes
\n";
     cout << "The size of a float is:\t\t"   << sizeof(float)  << " bytes
\n";
     cout << "The size of a double is:\t"    << sizeof(double) << " bytes
\n";

        return 0;
}
----- test code ----------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]