Доброго времени суток.
Сегодня установил на сервер Oracle Solaris 11, с горем пополам установил gcc. После установки system/headers попробовал скомпилировать «Hello, World!» на С++ – и получил следующее сообщение:
alexey@test:~$ gcc hw.cpp -o hw.cpp <br/>
Assembler: hw.cpp<br/>
"/var/tmp//ccN27OcI.s", line 121 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_onceP5_oncePFvvE,pthread_once"<br/>
"/var/tmp//ccN27OcI.s", line 121 : Syntax error<br/>
Near line: " .weakref _ZL20__gthrw_pthread_onceP5_oncePFvvE,pthread_once"<br/>
"/var/tmp//ccN27OcI.s", line 121 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_onceP5_oncePFvvE,pthread_once"<br/>
"/var/tmp//ccN27OcI.s", line 121 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_onceP5_oncePFvvE,pthread_once"<br/>
"/var/tmp//ccN27OcI.s", line 122 : Illegal mnemonic<br/>
Near line: " .weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific"<br/>
"/var/tmp//ccN27OcI.s", line 122 : Syntax error<br/>
Near line: " .weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific"<br/>
"/var/tmp//ccN27OcI.s", line 122 : Illegal mnemonic<br/>
Near line: " .weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific"<br/>
"/var/tmp//ccN27OcI.s", line 122 : Illegal mnemonic<br/>
Near line: " .weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific"<br/>
"/var/tmp//ccN27OcI.s", line 123 : Illegal mnemonic<br/>
Near line: " .weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific"<br/>
"/var/tmp//ccN27OcI.s", line 123 : Syntax error<br/>
Near line: " .weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific"<br/>
"/var/tmp//ccN27OcI.s", line 123 : Illegal mnemonic<br/>
Near line: " .weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific"<br/>
"/var/tmp//ccN27OcI.s", line 123 : Illegal mnemonic<br/>
Near line: " .weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific"<br/>
"/var/tmp//ccN27OcI.s", line 124 : Illegal mnemonic<br/>
Near line: " .weakref _ZL22__gthrw_pthread_createPjPK13_pthread_attrPFPvS3_ES3_,pthread_create"<br/>
"/var/tmp//ccN27OcI.s", line 124 : Syntax error<br/>
Near line: " .weakref _ZL22__gthrw_pthread_createPjPK13_pthread_attrPFPvS3_ES3_,pthread_create"<br/>
"/var/tmp//ccN27OcI.s", line 124 : Illegal mnemonic<br/>
Near line: " .weakref _ZL22__gthrw_pthread_createPjPK13_pthread_attrPFPvS3_ES3_,pthread_create"<br/>
"/var/tmp//ccN27OcI.s", line 124 : Illegal mnemonic<br/>
Near line: " .weakref _ZL22__gthrw_pthread_createPjPK13_pthread_attrPFPvS3_ES3_,pthread_create"<br/>
"/var/tmp//ccN27OcI.s", line 125 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_joinjPPv,pthread_join"<br/>
"/var/tmp//ccN27OcI.s", line 125 : Syntax error<br/>
Near line: " .weakref _ZL20__gthrw_pthread_joinjPPv,pthread_join"<br/>
"/var/tmp//ccN27OcI.s", line 125 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_joinjPPv,pthread_join"<br/>
"/var/tmp//ccN27OcI.s", line 125 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_joinjPPv,pthread_join"<br/>
"/var/tmp//ccN27OcI.s", line 126 : Illegal mnemonic<br/>
Near line: " .weakref _ZL21__gthrw_pthread_equaljj,pthread_equal"<br/>
"/var/tmp//ccN27OcI.s", line 126 : Syntax error<br/>
Near line: " .weakref _ZL21__gthrw_pthread_equaljj,pthread_equal"<br/>
"/var/tmp//ccN27OcI.s", line 126 : Illegal mnemonic<br/>
Near line: " .weakref _ZL21__gthrw_pthread_equaljj,pthread_equal"<br/>
"/var/tmp//ccN27OcI.s", line 126 : Illegal mnemonic<br/>
Near line: " .weakref _ZL21__gthrw_pthread_equaljj,pthread_equal"<br/>
"/var/tmp//ccN27OcI.s", line 127 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_selfv,pthread_self"<br/>
"/var/tmp//ccN27OcI.s", line 127 : Syntax error<br/>
Near line: " .weakref _ZL20__gthrw_pthread_selfv,pthread_self"<br/>
"/var/tmp//ccN27OcI.s", line 127 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_selfv,pthread_self"<br/>
"/var/tmp//ccN27OcI.s", line 127 : Illegal mnemonic<br/>
Near line: " .weakref _ZL20__gthrw_pthread_selfv,pthread_self"<br/>
"/var/tmp//ccN27OcI.s", line 128 : Illegal mnemonic<br/>
Near line: " .weakref _ZL22__gthrw_pthread_detachj,pthread_detach"<br/>
"/var/tmp//ccN27OcI.s", line 128 : Syntax error<br/>
Near line: " .weakref _ZL22__gthrw_pthread_detachj,pthread_detach"<br/>
"/var/tmp//ccN27OcI.s", line 128 : Illegal mnemonic<br/>
Near line: " .weakref _ZL22__gthrw_pthread_detachj,pthread_detach"<br/>
Too many errors - Goodbye
Подскажите, что мне такого сделать, чтобы программы компилировались без ошибок?
Заранее спасибо за ответы.