This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc 3.01 on Solaris 2.7
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Subject: gcc 3.01 on Solaris 2.7
- From: Meenan Vishnu <meenan dot vishnu at calix dot com>
- Date: Tue, 23 Oct 2001 13:44:25 -0700
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