04.06.2015 Views

Red Hat Developer Toolset 1.x User Guide - Linux

Red Hat Developer Toolset 1.x User Guide - Linux

Red Hat Developer Toolset 1.x User Guide - Linux

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

26 Chapter 2. GNU Compiler Collection (GCC)<br />

Example 2.6. Running a Fortran Program on the Command Line<br />

Assuming that you have successfully compiled the hello binary file as shown in Example 2.5,<br />

“Compiling a Fortran Program on the Command Line”, you can run it by typing the following at a shell<br />

prompt:<br />

~]$ ./hello<br />

Hello, World!<br />

2.4. Additional Resources<br />

A detailed description of the GNU Compiler Collections and its features is beyond the scope of this book.<br />

For more information, refer to the resources listed below.<br />

Installed Documentation<br />

gcc(1) — The manual page for the gcc compiler provides detailed information on its usage; with few<br />

exceptions, g++ accepts the same command line options as gcc. To display the manual page for the<br />

version included in <strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong>, type:<br />

scl enable devtoolset-1.1 'man gcc'<br />

gfortran(1) — The manual page for the gfortran compiler provides detailed information on its<br />

usage. To display the manual page for the version included in <strong>Red</strong> <strong>Hat</strong> <strong>Developer</strong> <strong>Toolset</strong>, type:<br />

scl enable devtoolset-1.1 'man gfortran'<br />

C++ Standard Library Documentation — Documentation on the C++ standard library can be optionally<br />

installed by typing the following at a shell prompt as root:<br />

yum install devtoolset-1.1-libstdc++-docs<br />

Once installed, HTML documentation is available at /opt/rh/devtoolset-<br />

1.1/root/usr/share/doc/devtoolset-1.1-libstdc++-docs-4.7.2/html/index.html.<br />

Online Documentation<br />

<strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 6 <strong>Developer</strong> <strong>Guide</strong> — The <strong>Developer</strong> <strong>Guide</strong> for <strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> 6<br />

provides in-depth information about GCC.<br />

Using the GNU Compiler Collection — The official GCC manual provides an in-depth description of<br />

the GNU compilers and their usage.<br />

The GNU C++ Library — The GNU C++ library documentation provides detailed information about<br />

the GNU implementation of the standard C++ library.<br />

The GNU Fortran Compiler — The GNU Fortran compiler documentation provides detailed<br />

information on gfortran's usage.<br />

See Also<br />

Section B.1, “Changes in GCC 4.7.2” provides a comprehensive list of features and improvements<br />

over the <strong>Red</strong> <strong>Hat</strong> Enterprise <strong>Linux</strong> system version of the GNU Compiler Collection, as well as<br />

information about the language, ABI, and debugging compatibility.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!