This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc 3.01 on Solaris 2.7




I installed gcc 3.01 on Solaries 2.7 but it does not compiler the following
simple program:

#include <iostream>

int main()
  {
    long long x;
    x = 5;

    std::cout << x << std::endl;
  }

I tried compiling as

> g++ -c -D_GLIBCPP_USE_LONG_LONG -static junk.cc

The program now compiles, but the result printed is 0, instead of 5.

Any help is much appreciated.

/home/mvishnu > uname -a
SunOS petuxa02 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-80

Thank You,
Meenan Vishnu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]