This is the mail archive of the gcc-help@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]
Other format: [Raw text]

error: unknown opcode ".uleb128"


Hi,

  When i install the gcc 3.0.2,
I try to compile a simple c++ program,but get
error like this:
/usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6472: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6477: error: unknown opcode ".uleb128"
/usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6477: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6480: error: unknown opcode ".uleb128"
/usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6480: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6481: error: unknown opcode ".uleb128"
/usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6481: error: statement syntax

But when i compile with the c program, it is ok.
I do not know why, any help will be appreciated.
the c++ program ,

#include <iostream.h>

main ()
{
  cout << "Helo world" << endl;
}

the c program
#include <stdio.h>

int main(int argc, char *argv[])
{
 printf("Hello, world\n");
 
 return 0;
}
     

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