Skip to navigation

Where does the C compiler reside in the Red Hat installation?

Updated 2004-07-18T22:00:00+00:00

The C compiler is accessible as the program name gcc which is the GNU project C and C++ compiler. It is located in the /usr/bin directory and is part of the gcc-<version> rpm package.

Below is an example of how to use gcc. The -o switch creates and executable file by the name of whatever you provide, in this example it is hello. The last argument is the file that you are compiling.

$ gcc -o hello hello.c...

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.