LINUX.ORG.RU

История изменений

Исправление debugger, (текущая версия) :

К примеру, я не понимаю почему GCC по gcc -v выплёвывает версию в stderr, вместо более логичного для этого stdout и пр.

«Если ничего не помогает, прочтите, наконец, инструкцию.»

У ld -v является синонимом --version (ну, не совсем), у gcc — нет.

man gcc:

-v Print (on standard error output) the commands executed to run the stages of compilation. Also print the version number of the compiler driver program and of the preprocessor and the compiler proper.

man ld:

-v
--version
-V Display the version number for ld. The -V option also lists the supported emulations.

Чтобы вывести версию на stdout надо использовать стандартную гнушную опцию --version, которую понимает и gcc, и ld.

Исправление debugger, :

К примеру, я не понимаю почему GCC по gcc -v выплёвывает версию в stderr, вместо более логичного для этого stdout и пр.

«Если ничего не помогает, прочтите, наконец, инструкцию.»

У ld -v является синонимом --version, у gcc — нет.

man gcc:

-v Print (on standard error output) the commands executed to run the stages of compilation. Also print the version number of the compiler driver program and of the preprocessor and the compiler proper.

man ld:

-v
--version
-V Display the version number for ld. The -V option also lists the supported emulations.

Чтобы вывести версию на stdout надо использовать стандартную гнушную опцию --version, которую понимает и gcc, и ld.

Исправление debugger, :

К примеру, я не понимаю почему GCC по gcc -v выплёвывает версию в stderr, вместо более логичного для этого stdout и пр.

Чтобы понимать, надо прочитать документацию:

-v Print (on standard error output) the commands executed to run the stages of compilation. Also print the version number of the compiler driver program and of the preprocessor and the compiler proper.

Чтобы вывести версию на stdout надо использовать стандартную гнушную опцию --version, которую понимает и gcc, и ld.

Исправление debugger, :

К примеру, я не понимаю почему GCC по gcc -v выплёвывает версию в stderr, вместо более логичного для этого stdout и пр.

Чтобы понимать, надо прочитать документацию:

-v Print (on standard error output) the commands executed to run the stages of compilation. Also print the version number of the compiler driver program and of the preprocessor and the compiler proper.

Чтобы вывести версию на stdout надо использовать стандартную гнушную опцию --version.

Исходная версия debugger, :

К примеру, я не понимаю почему GCC по gcc -v выплёвывает версию в stderr, вместо более логичного для этого stdout и пр.

Чтобы понимать, надо прочитать документацию:

-v Print (on standard error output) the commands executed to run the stages of compilation. Also print the version number of the compiler driver program and of the preprocessor and the compiler proper.

Чтобы вывести версию на stdout надо использовать стандартную гнушную опцию --version.